Currently we load runtime.memstats.heap_alloc and runtime.MemProfileRate on every
malloc. Both are not strictly necessary and bring 2 unnecessary cache lines into cache.
Here are proof-of-concept CLs:
Ideally we trigger GC directly from mcacheRefill, but it's not trivial to implement.
The text was updated successfully, but these errors were encountered: