3 ms·
What are you using? Have you tried NSJSONSerialization? It’s quite fast (am very curious how it shows in these benchmarks), but I don’t think it does the fancy
by azinman2 8y ago
What are you using? Have you tried NSJSONSerialization? It’s quite fast (am very curious how it shows in these benchmarks), but I don’t think it does the fancy Codable stuff.
- eridius 8y agoSwift has JSONEncoder and JSONDecoder types to do Codable, though internally they have to encode to/decode from the Foundation objects that JSONSerialization produces.
- jeremy_wiebe 8y agoYou might want to check out the benchmark I wrote to compare exactly that. https://github.com/jeremywiebe/json-performance https://github.com/jeremywiebe/json-performance