FasterXML / jackson-core

Core part of Jackson that defines Streaming API as well as basic shared abstractions
Apache License 2.0
2.25k stars 773 forks source link

Fix #1284: avoid buffering-as-String for JsonParser.getFloat()/getDouble()/getDecimal() #1313

Closed cowtowncoder closed 2 months ago

cowtowncoder commented 2 months ago

Looks like there was a bug in #1230 which prevent speed up, fixed with this PR.

And with that, looks like:

  1. "Fast" Double parsing for test case goes up by +15%
  2. "Fast" BigDecimal parsing goes up by +30% (!!!)

but somewhat interestingly, even non-fast handling has some improvement (esp. for BigDecimal).