On Sep 22, 2010, at 2:38 PM, Eric E. Dolecki wrote:

> I've been asked to take the iTunes XML file from a few people and provide a
> picker to choose which one to use. That's the easy part. So I have a few of
> the XML files and slapped them on a server, etc. however each one averages
> about 5MB in size. I am not linking to actual media obviously, but I'd have
> to think 5MB XML files are pretty big to be loading and parsing on an
> iPhone.

If your users don't have unlimited data plans, they might want to think twice 
about allowing that download over WWAN, but 5MB is not undoable. It doesn't 
take hours to download.

> Should I let this person know that this just isn't feasible on an iPhone? If
> it's doable, should I use something other than NSXMLParser?

Absolutely. NSXMLParser uses about twice the memory and time of libxml on small 
files, and doesn't allow you to parse the data in chunks: you'd have to 
download the entire 5MB before you can start parsing. Look at XMLPerformance 
sample code to get started with libxml's push parser.

Good luck,
Hank

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to