Tech News
← Home  ·  All topics

Mallocgc

1 GoKawiil brief on this topic

Go 1.27 speeds small heap allocations via size-specialized functions

Go 1.27 introduces specialized memory allocation functions for objects of 80 bytes or smaller, tailored to the runtime's existing size-class system. These functions handle specific size classes and pointer/non-pointer distinctions, letting the compiler skip generic branching logic used in the shared mallocgc path.