Skip to content

Change default RecylerPool implementation to newLockFreePool (from threadLocalPool) #1117

Description

@cowtowncoder

With #1089 (and related) completed, Jackson 2.16 both allows for configuring alternate RecyclerPools to use for buffer recycling and provides a set of alternatives, notably ones that do not use ThreadLocal for recycling.

To reduce likelihood of breakage, the default implementation for 2.16 remains ThreadLocal-based pool. This hopefully allows as to gather feedback, experiences by early adopters, on how alternative pools work (for example, Quarkus project is likely to experiment with alternatives). This, in turn, should let us decide on which alternative to use, along with global-vs-per-factory pools.
As the baseline, my icurrent thinking is that per-factory, unbounded/lock-free implementation might work well as the default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions