Skip to content

Implement ByteArray pool allocator && String pool #69

@tuhuynh27

Description

@tuhuynh27

Issue: There is a lot of byte[] allocated when handling TCP messages:

image

It's better to have a ByteArray pool allocator so that byte[] can be reused and avoid creating massive garbage for the GC and the throughput can be even better.

For example:

ByteArrayPoolAllocator pool = ByteArrayPoolAllocator.DEFAULT
byte[10] obj = byteArrayPool.getByteArray(10);

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluationFor 'Grokking Internal member' evaluationhelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions