• 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: real verses Virtual memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: real verses Virtual memory


  • Subject: Re: real verses Virtual memory
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 10 Oct 2009 14:26:17 -0700


On Oct 10, 2009, at 12:41 PM, jon wrote:

oh... that is good to know... hmm, well it looks like i need to go lower in the mechanism, stuff i don't know anything about, so i'll do research on the best way to get the info off the website at a lower level.

RSS or Atom feeds are often used for this purpose. Does the site have feeds that you can check to find when things change? If so, look at the PubSub framework in 10.5+ which will automatically subscribe to and track feeds for you. It tries hard to be as efficient about it as possible. (Disclaimer: I wrote part of that framework so I'm biased :)


If you can't use a feed, use NSURLRequest to fetch the page. If you leave the caching settings alone, it should be pretty good about being lazy: it will send a "conditional GET" that allows the server to respond with a "nothing's changed" response (just a couple of bytes) if the page hasn't changed. You can check the "Last-Modified" and "ETag" headers in the NSHTTPURLResponse object and compare them to what you got last time; if they're the same, there's no need to parse the page.

—Jens_______________________________________________

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


  • Follow-Ups:
    • Re: real verses Virtual memory
      • From: jon <email@hidden>
    • Re: real verses Virtual memory
      • From: jon <email@hidden>
References: 
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Jean-Daniel Dupas <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Shawn Erickson <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Bill Bumgarner <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Shawn Erickson <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Shawn Erickson <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)
 >Re: real verses Virtual memory (From: Jens Alfke <email@hidden>)
 >Re: real verses Virtual memory (From: jon <email@hidden>)

  • Prev by Date: Re: real verses Virtual memory
  • Next by Date: Re: real verses Virtual memory
  • Previous by thread: Re: real verses Virtual memory
  • Next by thread: Re: real verses Virtual memory
  • Index(es):
    • Date
    • Thread