You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my benchmarking, JSONDecoder performs similarly (and often a bit faster) than ZippyJSON for iOS version 17+. For my users, I'm curious if there are still use cases where using ZippyJSON over JSONDecoder is desirable once they've set their minimum version to 17+ (cases where it's still faster, etc.). Otherwise, I will probably put up a notice informing people about Apple's new JSONDecoder performance, and in a few years when every app is on 17+, archive the repo. To all who see this issue, feel free to comment with your thoughts!
As a side note, I would love to take this as a challenge to optimize my project more and still provide a large speed boost over Apple's latest and greatest, but a lot of the overhead now seems to be concentrated in Swift runtime overhead, with stuff like protocol conformance lookups. This is, I think, why Apple's version and mine are now similar, and I imagine neither will change much now unless the runtime performance changes.
Reacted by Marcelo Perretta, Brentley Jones, Alex Ehlke and A V I I
Phones on iOS 17+ will see a faster JSONDecoder regardless of the app’s min
version. Companies that support older versions, though, may want to keep
ZippyJSON until their min version is 17+.
I still use the library on projects which deploy < iOS 17 for the fixed handling of Decimal decoding, which round trips through Double on older Apple OSes.
Activity
aehlke commentedon Dec 5, 2024
is the new JSONEncoder similarly fast?
michaeleisel commentedon Dec 5, 2024
I haven't measured it, and don't plan to. But if someone does, feel free to post the results
rbsgn commentedon Feb 13, 2025
I'm curious what does iOS 17+ version mean: Is this minimum deployment target or OS version at runtime?
michaeleisel commentedon Feb 13, 2025
jshier commentedon Aug 27, 2025
I still use the library on projects which deploy < iOS 17 for the fixed handling of
Decimaldecoding, which round trips throughDoubleon older Apple OSes.