Skip to content

Bug in BufferRecycler.allocByteBuffer(int,int), wrong default size #143

@cowtowncoder

Description

@cowtowncoder

Looks like refactoring between 2.3.3 and 2.4.0 broke handling of allocation of non-default buffers; what happens is that allocated buffer size ends up being default even if caller specifies alternate minimum size.

This ends up causing performance regression for jackson-dataformat-cbor (but not other encoders, at least not json or smile) since it defaults to bigger buffer size for write encoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions