jackson-core icon indicating copy to clipboard operation
jackson-core copied to clipboard

Add `vanilla` flag for generators

Open cowtowncoder opened this issue 5 years ago • 0 comments

With 3.0 we can start specializing generators (and parsers too) more, due to full immutability of feature flags.

One thing that should allow minor performance optimization is separating "non-vanilla" feature handling, such as:

  • Unquoted field names
  • Pretty-printing
  • Custom escaping

into either fully separate generator implementations, or, as the first step, to use "vanilla flag" (similar to how BeanDeserializer works) to at least combine many checks into one, streamlining the default case of not requiring additional checks.

cowtowncoder avatar Oct 08 '18 17:10 cowtowncoder