I recently watched an old WWDC video. The actual content of the video is not relevant but there was this one frame in the video that actually caught my eye. It was about parsing speeds between JSON, XML and Plist According to the video parsing plist is ~22 times faster than json and ~43 times faster than parsing XML. Since the video was from 2010 and the world has really moved on ever since. So I had validate for myself how much of this is true in the year 2026. I found a JSON vs Plist benchmarking project and cloned it - mainly for the data set. Then I put 4 parsers provided by Apple today in the arena: JSONSerialization let object = try! JSONSerialization.jsonObject(with: data) as! NSDictionary let list = List(object) JSONDecoder let list = try! JSONDecoder().decode(List.self, from: data) PropertyListSerialization let object = try! PropertyListSerialization.propertyList(from: data, format: nil) as! NSDictionary let list = List(object)! PropertyListDecoder let list = try!…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.