Review and improve buffer pool implmentation. Add unit tests.

This commit is contained in:
2026-02-28 19:34:33 +01:00
parent 888d7fb235
commit 1ec41d8389
4 changed files with 566 additions and 40 deletions

View File

@@ -428,7 +428,7 @@ func MemoryUsageTracker(wg *sync.WaitGroup, ctx context.Context) {
runtime.ReadMemStats(&mem)
actualMemoryGB = float64(mem.Alloc) / 1e9
bufferPool.CleanAll()
bufferPool.Clear()
cclog.Infof("[METRICSTORE]> Cleaned up bufferPool\n")
if actualMemoryGB > float64(Keys.MemoryCap) {