• 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: Xcode 4.3.1 memory usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 4.3.1 memory usage


  • Subject: Re: Xcode 4.3.1 memory usage
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 17 Mar 2012 01:44:43 +0000

On 16 Mar 2012, at 23:02, Jens Alfke wrote:

> That source file contains a pathologically long method named -fillMatrix:withObject:. It’s over 3000 lines long!
It certainly is one big function!
Plus it includes a lot of #define macros.

> The lesson is Don’t Write Huge Functions. Besides giving compilers fits, they’re also very difficult to read and understand. A function that long nearly always should be broken up into lots of smaller functions. The only exceptions I’ve seen are intensely performance-critical functions like the inner loops of interpreters, but this doesn’t look like one of those. It just looks really badly written. :-p
I certainly wouldn't offer that that particular function as an example of good practice.
Though I would say that as a whole F-script is very impressive.

What it does demonstrate though is that even when faced with this sort of  monster a bit of patience is rewarded with a successful build.
A lot of memory is used but to ultimate good effect.
Though I would say that Xcode 4.3.1 uses more resources for the same build than 4.2 or the Xcode 3 series.
But then again the tool chain is more sophisticated.

Regards

Jonathan Mitchell
Mugginsoft LLP





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Re: Xcode 4.3.1 memory usage (From: Brad Oliver <email@hidden>)
 >Re: Xcode 4.3.1 memory usage (From: Sean McBride <email@hidden>)
 >Re: Xcode 4.3.1 memory usage (From: Brad Oliver <email@hidden>)
 >Re: Xcode 4.3.1 memory usage (From: Sean McBride <email@hidden>)
 >Re: Xcode 4.3.1 memory usage (From: "email@hidden" <email@hidden>)
 >Re: Xcode 4.3.1 memory usage (From: Jens Alfke <email@hidden>)

  • Prev by Date: Source Control
  • Next by Date: Re: Source Control
  • Previous by thread: Re: Xcode 4.3.1 memory usage
  • Next by thread: Re: Xcode 4.3.1 memory usage
  • Index(es):
    • Date
    • Thread