• 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: how to make a task less cpu intensive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >how to make a task less cpu intensive (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: Guidance on CATiledLayer
  • Previous by thread: Re: how to make a task less cpu intensive
  • Next by thread: Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
  • Index(es):
    • Date
    • Thread