Skip to content

Use a concurrent Jackson recycler pool instead of the ThreadLocal one - #138

Open
franz1981 wants to merge 1 commit into
masterfrom
jackson-recycler-option
Open

franz1981 wants to merge 1 commit into
masterfrom
jackson-recycler-option

Conversation

@franz1981

Copy link
Copy Markdown
Owner

Jackson's default recycler pool keeps a BufferRecycler in a ThreadLocal.
With a virtual thread per request, every parse started from an empty
recycler and allocated fresh buffers. Both ObjectMappers now use a shared
concurrent deque pool, which works the same on platform and virtual
threads.

Jackson's default recycler pool keeps a BufferRecycler in a ThreadLocal.
With a virtual thread per request, every parse started from an empty
recycler and allocated fresh buffers. Both ObjectMappers now use a shared
concurrent deque pool, which works the same on platform and virtual
threads.
@franz1981
franz1981 force-pushed the jackson-recycler-option branch from 01a5aa5 to a24196d Compare October 22, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant