Re: real verses Virtual memory
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