allegro / bigcache

Efficient cache for gigabytes of data written in Go.
http://allegro.tech/2016/03/writing-fast-cache-service-in-go.html
Apache License 2.0
7.45k stars 593 forks source link

Use pool instead of entryBuffer #372

Closed valiner closed 1 year ago

valiner commented 1 year ago

Use sync.pool to get higher performance

cristaloleg commented 1 year ago

Hey, thanks for the feature. Can you re-run benchmarks?

valiner commented 1 year ago

Hey, thanks for the feature. Can you re-run benchmarks?

I reconfirmed it. It's not a good idea.