Skip to content

Improve Jackson ObjectMapper usage #142

Closed
@hzalaz

Description

@hzalaz

Ideally we should have a single ObjectMapper per Verifier/Creator instance since they are meant to be shared and there is no need to recreate them per request. However we are creating some additional mappers in some places that can be avoided and the alternatives are:

  1. store in a static var a Mapper (not something I'd like)
  2. make sure we have a single mapper per Verifier/Creator and pass it along to anyone that needs it
  3. same as the previous one but instead of passing the mapper we pass the Reader/Writer

So far the preferred option is #3 but we can start with #2 and then improve later with Writer/Reader

Related to #140

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:staleIssue or PR has not seen activity recentlyenhancementAn enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions