Skip to content

RFC: The Future of ZippyJSON #69

Open

Description

@michaeleisel

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.

Activity

  1. aehlke commented on Dec 5, 2024

    @aehlke

    is the new JSONEncoder similarly fast?

  2. michaeleisel commented on Dec 5, 2024

    @michaeleisel
    OwnerAuthor

    I haven't measured it, and don't plan to. But if someone does, feel free to post the results

  3. rbsgn commented on Feb 13, 2025

    @rbsgn

    I'm curious what does iOS 17+ version mean: Is this minimum deployment target or OS version at runtime?

  4. michaeleisel commented on Feb 13, 2025

    @michaeleisel
    OwnerAuthor
  5. jshier commented on Aug 27, 2025

    @jshier

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions