Skip to content

Using alternates besides JSONDecoder for deserialization #81

@michaeleisel

Description

@michaeleisel

ZippyJSON (a framework that I created), is a 3-4x faster version of JSONDecoder. Using it could be a big speed boost for consumers. However, the customization provided by #28 doesn't allow for anything besides JSONDecoder (or a subclass of it). This makes it difficult to use ZippyJSON because alternate implementations are best not to subclass it to ensure good performance. Here are some possibilities:

  • Allow users to pass in anything that implements TopLevelDecoder, and not just JSONDecoder
  • Mention performance wins from using a custom implementation like ZippyJSON
  • Simply use ZippyJSON behind the scenes by default

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions