• 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: why does this leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does this leak?


  • Subject: Re: why does this leak?
  • From: j o a r <email@hidden>
  • Date: Wed, 15 Feb 2006 01:06:28 +0100


On 14 feb 2006, at 23.45, Daniel Jalkut wrote:

It's on my list to incorporate kqueue support for even better performance, but the point is that for most purposes (a few hundred items or less) it's going to be instantaneous to recursively check the mod dates of the entire tree. And when you always check just before displaying the menu, you never have to worry about the user getting an "out of date" representation of their files.

This is probably true when you're using a local HD (and not a network volume), and as long as it's behaving correctly. In general though, I think it's best if you avoid doing IO in direct response to user events, or in other performance sensitive operations - like for example NSTableView data source methods, toolbar item validation methods, et.c. (The examples of things you shouldn't do are taken from Xcode...)


j o a r


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >why does this leak? (From: Robert Dell <email@hidden>)
 >Re: why does this leak? (From: Charlton Wilbur <email@hidden>)
 >Re: why does this leak? (From: Robert Dell <email@hidden>)
 >Re: why does this leak? (From: j o a r <email@hidden>)
 >Re: why does this leak? (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: keyDown: and Japanese input methods
  • Next by Date: Re: MDItemCreate very, very, very, slow -- and fails
  • Previous by thread: Re: why does this leak?
  • Next by thread: Re: why does this leak?
  • Index(es):
    • Date
    • Thread