From a142d6587cb6a7ac59ebf49120167c96bdc3bcf6 Mon Sep 17 00:00:00 2001 From: Carlo Alberto Ferraris Date: Mon, 22 Nov 2021 01:26:48 +0000 Subject: [PATCH] doc: go1.18 release notes for CLs 323318/332771 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Updates #47694 Change-Id: Ib76737996a701906117e096eb6d05b388576a874 GitHub-Last-Rev: 05b96499651bb4e90617460a72f1df9f2c8615f3 GitHub-Pull-Request: golang/go#49588 Reviewed-on: https://go-review.googlesource.com/c/go/+/363840 Reviewed-by: Dmitri Shuralyov Trust: Daniel Martí --- 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 c9c70267f1..1788e97663 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -304,9 +304,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.

@@ -447,9 +448,10 @@ proposal. the input string's memory.

-

- 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.

-- 2.50.0