Skip to content

Allow pluggable buffer recycling via new RecyclerPool extension point #1089

@cowtowncoder

Description

@cowtowncoder

Although the current hard-coder ThreadLocal-based buffer recycling (via BufferRecycler containers accessed via BufferRecyclers) has worked reasonably well up until recently, changes to later JVMs have made ThreadLocal access less beneficial; and in near future (Project Loom et al) even counter-productive.
But there are other ways to allow beneficial buffer recycling: especially for use cases where pooling is integrated with other frameworks.

To allow new default and alternative recycling schemes, let's add RecyclerPool extension point, make current implementation work with it.
And for bonus points, possibly implement one or more alternate implementations to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.16Issue planned (at earliest) for 2.16performanceIssue related to performance problems or enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions