diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2025-12-08 22:12:15 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-08 14:36:18 -0800 |
| commit | 2f8cb02b82a72c7288fe4f1e4372c0e6c4da2bcb (patch) | |
| tree | 8f1583badfe5c940ec7ab9fb661ecc6e4258ed1f | |
| parent | 973a4f71326930ee01898a6795087cd3a3fb789f (diff) | |
| download | go-x-website-2f8cb02b82a72c7288fe4f1e4372c0e6c4da2bcb.tar.xz | |
_content/doc/go1.26.md: add entry for size-specialized malloc
Change-Id: Ib41e2935a04c01d4f12f64cfedccb476a9b9529d
Reviewed-on: https://go-review.googlesource.com/c/website/+/728400
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
| -rw-r--r-- | _content/doc/go1.26.md | 13 |
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 --> |
