Swift version of Apple's XMLPerformance sample code project.
Requirements
Xcode 8.1 or later, Swift 3.
For Swift 2.3 version, see branch 'swift-2.3'.
Abstract from Apple
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.
Notes
This code explores how to interface to the C libraries libxml and sqlite including providing asynchronous callbacks into Swift from C for SAX parsing.
Modifications
Adapted code from Objective-C to Swift 3.
What is the License for the Tutorial Source Code?
MIT License applies for the code in this repository