• 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: File Detection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: File Detection
      • From: Mason Mark <email@hidden>
References: 
 >Re: File Detection (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: Right (or cntl)-clicking a button
  • Next by Date: Re: converting text input in any encoding to unicode
  • Previous by thread: Re: File Detection
  • Next by thread: Re: File Detection
  • Index(es):
    • Date
    • Thread