From 05b96499651bb4e90617460a72f1df9f2c8615f3 Mon Sep 17 00:00:00 2001
From: Carlo Alberto Ferraris
-
+
@@ -407,9 +408,10 @@ Minor changes to the library
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.
Minor changes to the library
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.