I’m considering making a switch from serializing data from my web service endpoint as JSON to a binary property list. I’m unserializing on Cocoa. Has anyone who has used both NSPropertyListSerialization and NSJSONSerialization noticed a difference in parsing times? I’m curious as I’ve read before that there’s a noticeable difference—see this blog post (in the Under the Hood section) for an example by Hipmunk.
Also interesting to me if there’s a noticeable difference between NSJSONSerialization and external libraries like JSONKit or TouchJSON.
I can say that
NSJSONSerializationis faster than JSONKit, I used it for a Core Graphics project and code which took on average 26ms before is now 16ms, with only changes in the JSON deserialization.Not sure on
NSPropertyListSerialization, but the GitHub page of JSONKit claims it’s faster than binary .plist, which leads me to believe thatNSJSONSerializationclass is the fastest of them all. Correct me if I’m wrong.