• 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: Speed Traps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Events between Objective C objects
  • Next by Date: Where do nib files get stored in bundles???
  • Previous by thread: Re: Speed Traps
  • Next by thread: Re: Speed Traps
  • Index(es):
    • Date
    • Thread