Re: how to make a task less cpu intensive
Re: how to make a task less cpu intensive
- Subject: Re: how to make a task less cpu intensive
- From: Nick Rogers <email@hidden>
- Date: Tue, 01 Jan 2013 12:36:38 +0530
Hi,
Thanks for all the input.
The problem solved when I did this: [progressIndicator setUsesThreadedAnimation:YES]; in the awakeFromNib method.
With out this the progress bar doesn't animate no matter if the sheet is in the main thread or secondary or no heavy computations.
I can't have any rough estimates on how much memory i'd need to malloc, some times it can be less than 1 MB and grow to 1GB. Also the tree is incremental, so can not predict its final size.
Thanks again,
Nick
On 29-Dec-2012, at 12:53 AM, Scott Ribe <email@hidden> wrote:
> On Dec 28, 2012, at 10:40 AM, Nick Rogers wrote:
>
>> 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.
>
> Are you really only free'ing the malloc'd pointers? Or are you calling some higher-level tree maintenance function which does additional work? Example: calling some node->delete() function which re-balances the tree...
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden