Re: Xcode 4.3.1 memory usage
Re: Xcode 4.3.1 memory usage
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