aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_content/doc/go1.26.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/_content/doc/go1.26.md b/_content/doc/go1.26.md
index 6d60ed09..c4261ac2 100644
--- a/_content/doc/go1.26.md
+++ b/_content/doc/go1.26.md
@@ -99,6 +99,19 @@ performance or behavior, please [file an issue](/issue/new).
The baseline runtime overhead of cgo calls has been reduced by ~30%.
+### Faster memory allocation
+
+<!-- CL 665835 -->
+
+The compiler will now generate calls to size-specialized memory allocation
+routines, reducing the cost of some small (<512 byte) memory allocations by
+up to 30%.
+Improvements vary depending on the workload, but the overall improvement is
+expected to be ~1% in real allocation-heavy programs.
+Please [file an issue](/issue/new) if you notice any regressions.
+You may set `GOEXPERIMENT=nosizespecializedmalloc` at build time to disable
+it.
+
### Goroutine leak profiles {#goroutineleak-profiles}
<!-- CL 688335 -->