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

Optimize `JsonParser.getDoubleValue()/getFloatValue()/getDecimalValue()` to avoid String allocation

Open cowtowncoder opened this issue 2 months ago • 0 comments

With #1230 done, we can tackle one problem that may have been a regression: the fact that even when following JsonParser methods are used:

  • getDecimalValue()
  • getDoubleValue()
  • getFloatValue()

there will still be a String allocation even if that is not really needed for deferred decoding (like JsonParser.getNumberValueDeferred()) This may be a regression to address other problems with too-early binding of type.

cowtowncoder avatar Apr 30 '24 04:04 cowtowncoder