Re: Slow Cocoa
Re: Slow Cocoa
- Subject: Re: Slow Cocoa
- From: Allan Odgaard <email@hidden>
- Date: Tue, 17 Feb 2004 01:10:11 +0100
On 16. Feb 2004, at 23:58, Public Look wrote:
In general, allocating and deallocating objects is very expensive. It
is all built on top of malloc() and free() [...]
Not that I disagree about memory allocation being rather expensive, but
to be exact, objects are allocated from NSZone's -- one can create an
NSZone which doesn't maintain a freelist and thus it should be very
fast, though I would still think it does a mutex lock to work with
multi-threaded applications (but it will not need to do a
first/best/worst-fit search on each allocation).
_______________________________________________
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.