Try using a memory zone, see malloc_zone_malloc (3) and http://jeny.us/vXc3 
(short link to Apple developer page describing malloc_zone_malloc, etc).

Paul

On Dec 28, 2012, at 9:40 AM, Nick Rogers <roger...@mac.com> wrote:

> Hi,
> 
> I have a tree in memory (all nodes malloc'ed blocks) and when I start freeing 
> this large tree, I traverse the tree and free all nodes.
> This becomes cpu intensive and so the progress bar on my sheet doesn't 
> animate.
> 
> In similar other situations the progress bar animates, when different code is 
> executed in the background.
> 
> Any ideas on how to make tree freeing process less intensive?
> 
> Thanks,
> Nick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to