Re: Speed Traps
Re: Speed Traps
- Subject: Re: Speed Traps
- From: Daniel Zitter <email@hidden>
- Date: Mon, 19 May 2003 12:59:12 -0700
While good performance tuning is not rocket science, it is science.
Experiment confirms beyond all reasonable doubt that all other things
being equal, the use of autorelease pools MUST be slower than the use
of release.
The trick to good performance tuning is getting all other things to be
equal. External factors to consider are other processes running and the
state of the VM system. Something as simple as a reboot can prepare
ones system for the next test run. Then there are internal factors like
the code and the input data.
* * *
As was mentioned earlier in this thread, these are NOT equivalent:
> subExpr=[[NSMutableArray alloc] initWithArray:...]
> subExpr=[NSMutableArray arrayWithArray:...]
Comparing
[[[NSMutableArray alloc] initWithArray:...]autorelease]
to
subExpr = [[NSMutableArray alloc] initWithArray:...]
.
.
.
[subExpr release]
would be a more interesting take on the release versus autorelease
question.
Hope that helps,
Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.