iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.2

Posted: 2009-06-23

Build Requirements: iPhone SDK 3.0

Runtime Requirements: iPhone OS 3.0

View Source Code:

Download Sample Code (“XMLPerformance.zip”, 4.24M)



Description

This sample explores two approaches to parsing XML, focusing on performance with respect to speed, memory footprint, and user experience. The XML data used is the current "Top 300" songs from the iTunes store. The data itself is not particularly important to the sample - it was chosen because of its simplicity, availability, and because the size (approximately 850KB) is sufficient to demonstrate the performance issues central to the sample.

Document Revision History

Date Notes
2009-06-23Fixed a memory leak in LibXMLParser implementation of the NSURLConnection delegate method -connectionDidFinishLoading:. Improved autorelease pool management in Cocoa parser.
2009-05-22Updated user interface for iPhone SDK 3.0 and fixed bug in Xcode build setting for header search paths.
2008-11-20Performance and parsing XML, focusing on speed, memory footprint, and user experience.
Did this document help you? Yes It's good, but... Not helpful...