Skip to content

utils.BytesBufferGet performance #681

Open
@howmoxuan

Description

@howmoxuan

in utils.BytesBufferGet, the code use bytesBufferChan. May I know what is the usage/improvement of that channel based on?
In my application, it consume much CPU resource. (the pprof of the application is attached below). Can we just remove it? I do a benchmark, without channel is much faster. Any reason we add that channel?

image

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