You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: pool cachekv.Store to reduce allocation pressure
Replace per-tx cachekv.Store allocation with sync.Pool recycling for both
standard and giga variants. Add CacheMultiStore.Release() and ReleaseDB()
to return stores to pools at lifecycle boundaries (Cleanup,
RevertToSnapshot, CleanupForTracer). Release replaced stores in
SetKVStores/SetGigaKVStores and unused db store in OCC scheduler.
Reset() replaces sync.Map fields with fresh instances (not Clear(), which
is slower due to internal trie node walking and causes more allocations
when repopulated).
Targeting the #1 flat allocator from profiling: cachekv.NewStore at
9 GB / 157M objects over 30s at 8600 TPS.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments