FasterXML / jackson-core

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

Fix #1195: add actual `BufferRecycler` reuse #1196

Closed cowtowncoder closed 8 months ago

cowtowncoder commented 8 months ago

@mariofusco I think this is quite similar to what you suggested and should work well (not perfect obviously, but relatively limited changes). WDYT? I think life-cycle wrt pool will work ok in this particular case (that is, use of ByteArrayBuilder/SegmentedStringWriter by databind), even if not quite as clean as ideally it'd be.