You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently BufferRecycler passed to JsonGenerator and JsonParser is explicitly accessed from RecyclerPool configured with JsonFactory. But there are cases where jackson-databind has already allocated an instance for use (currently mostly for output aggregation) and it would make sense to allow that to be used instead.
Let's do this by checking if input source/output target implements BufferRecycler.Gettable to expose pre-configured BufferRecycler.
EDIT: since this is only needed for output side (JsonGenerator), initial implementation is just for this.
If need arises can make changes to input side.
The text was updated successfully, but these errors were encountered:
cowtowncoder
changed the title
Use BufferRecycler provided by input (InputStream, Reader) or output (OutputStream, Writer) object if available
Use BufferRecycler provided by output (OutputStream, Writer) object if available
Jan 23, 2024
(note: follow-up to #1193)
Currently
BufferRecycler
passed toJsonGenerator
andJsonParser
is explicitly accessed fromRecyclerPool
configured withJsonFactory
. But there are cases wherejackson-databind
has already allocated an instance for use (currently mostly for output aggregation) and it would make sense to allow that to be used instead.Let's do this by checking if input source/output target implements
BufferRecycler.Gettable
to expose pre-configuredBufferRecycler
.EDIT: since this is only needed for output side (
JsonGenerator
), initial implementation is just for this.If need arises can make changes to input side.
The text was updated successfully, but these errors were encountered: