• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Slow and bloated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow and bloated?


  • Subject: Re: Slow and bloated?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 26 Jul 2004 14:25:40 +0100

Heres an interesting idea for the truely obsessed.

Run shark, on Xcode, or on gcc, to see what is taking it so long. :o)

Clearly gcc handles Objective-C++ compilation differently than Objective-C, but I was kind of hoping that I could offer up a suggestion here. Hopefully, what I *didn't* find could prove useful instead. :P

I just ran the example that Allan posted and fed it through ktrace, thinking that maybe it would yield another clue for the Obj-C++ case. The kernel dumps were identical for both cases.

FYI - I ran the examples verbatim from the example below, using gcc-3.3 from the command line. I tried both 'gcc' and 'g++', and in each case, I wound up with very similar results to the ones that Allan posted.

It's pretty easy to conclude that gcc could use some serious optimization for compiling Objective-C++. Unfortunately, I would kind of doubt that optimizing gcc for Obj-C++ compile times is high on the agenda of the Apple engineering team, for fairly obvious reasons.

Incidentally, a glance at the man page for gcc indicates that pch is disabled when compiling ObjC++ code. I would imagine that this would account for most (if not all) of the time discrepancy, but I wasn't able to prove that assumption.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Slow and bloated? (From: "Theodore H. Smith" <email@hidden>)
 >Re: Slow and bloated? (From: Nick Zitzmann <email@hidden>)
 >Re: Slow and bloated? (From: Allan Odgaard <email@hidden>)
 >Re: Slow and bloated? (From: Nick Zitzmann <email@hidden>)
 >Re: Slow and bloated? (From: Brent Gulanowski <email@hidden>)
 >Re: Slow and bloated? (From: Allan Odgaard <email@hidden>)
 >Re: Slow and bloated? (From: Scott Judd <email@hidden>)

  • Prev by Date: Re: How can I get the source code?
  • Next by Date: wchar_t* turned into a char*?
  • Previous by thread: Re: Slow and bloated?
  • Next by thread: Re: Slow and bloated?
  • Index(es):
    • Date
    • Thread