Re: what's an NSZone?
Re: what's an NSZone?
- Subject: Re: what's an NSZone?
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 15 Feb 2002 17:04:38 -0800
On Friday, February 15, 2002, at 04:59 PM, Lance Bland wrote:
On Friday, February 15, 2002, at 07:45 PM, Timothy J. Wood wrote:
but if I could just toss the whole zone, it was _much_ faster.
Sounds like it could be a special case. Were you only doing
processing on memory in that zone (during your testing), or did
you have to go out of that zone to get other memory? Was the
improvement mostly due to the nature of the free() or was there
computational improvement? The nature of our apps are that all
the memory was segmented into different zones and cross
referenced each other and the interactions were complex.
What I used to do was allocate an NSZone per document (using my
own document class, before NSDocument existed), and blow away
the zone when I closed the document, after saving it out to a
file. It was a lot quicker than letting every object associated
with the document dealloc itself.
-jcr
_______________________________________________
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.