Re: File Detection
Re: File Detection
- Subject: Re: File Detection
- From: Jim Correia <email@hidden>
- Date: Mon, 28 Apr 2003 08:13:28 -0400
On Monday, April 28, 2003, at 07:00 AM, Nathan Day wrote:
Someone has released some code that does this and they basically just
do what you suggest periodically checking for any change. If you are
not to concerned with knowing immediately about any change, polling
every 5 secs or even every 5 min, then this is not much for cpu
running at 1 GHz.
Playing devil's advocate...
Polling can have a big impact even on a 1 GHz machine. Imagine the
situation where the machine has limited RAM and a large working set.
Your application is paged out. Your application needs to be paged in
(or stays paged in because its pages are always hot if you poll
frequently) to do its work, then is paged out before the next poll
cycle because a lot is going on on a machine with limited resources.
(And if you've got beefy development hardware and aren't cognizant of
the issue, you might not even realize you are having this impact on a
machine with lesser resources, or similar resources with a larger
typical working set.)
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.