From 05b96499651bb4e90617460a72f1df9f2c8615f3 Mon Sep 17 00:00:00 2001 From: Carlo Alberto Ferraris Date: Mon, 15 Nov 2021 16:50:29 +0900 Subject: [PATCH] doc: go1.18 release notes for CLs 323318/332771 Updates #47694 Change-Id: Ida662b637396eb967e759be231d79330ef4f6163 --- doc/go1.18.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index 61bb8dbbcb..d7dc68675a 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -266,9 +266,10 @@ proposal.
bytes
-

- bytes.Trim and related - functions, have had their most common use cases optimized. +

+ Trim, TrimLeft, + and TrimRight are now allocation free and, especially for + small ASCII cutsets, up to 10 times faster.

@@ -407,9 +408,10 @@ proposal. TODO: https://golang.org/cl/345849: add Clone function

-

- strings.Trim and related functions - functions, have had their most common use cases optimized. +

+ Trim, TrimLeft, + and TrimRight are now allocation free and, especially for + small ASCII cutsets, up to 10 times faster.