Skip to content

memory cost too high #8

Description

@Nyx2022

hi ,i'm using this lib now,but i found when i call get and put very flunetnly,the memery still will increase to a high value for my application
image
you see, the relative is too high
my config is :
var BufferPool1 = adaptivepool.New( //还不太会用
adaptivepool.BytesBufferProvider{},
adaptivepool.NormalEstimator{
Threshold: 2, // reuse buffer if its Cap is in Mean ± 2 * StdDev
MinCost: 51200, // minimum cost (bytes) of newly created items
},
50, // bias towards the latest 500 elements to increase adaptability
)

can you tell how can i control the memory cost in a little value, thank you inadvance

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions