FasterXML / jackson-core

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

exception message generation uses too much memory #1333

Closed pjfanning closed 2 months ago

pjfanning commented 2 months ago

I've looking at issues in BigDecimalParser and noticed that the exception message code that is meant to protect us from consuming too much memory is not efficient enough.

This PR adds methods to handle char arrays and avoids creating Strings for the potentially large arrays.