Re: why does this leak?
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