]> Cypherpunks repositories - gostls13.git/commit
strings: select Replacer algorithm and build machine lazily
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 2 Aug 2018 20:02:24 +0000 (20:02 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Aug 2018 02:50:58 +0000 (02:50 +0000)
commitc544e0fbdb7344b2025650aaf70bab3b09d72003
tree284bee6c1ae58b7fcf8a4371ed09c2402e394da3
parent9087d13ec3e39e50aae6c6a8cf99dc66225ab132
strings: select Replacer algorithm and build machine lazily

Saves 22KB of memory in stdlib packages.

Updates #26775

Change-Id: Ia19fe7aff61f6e2ddd83cd35969d7ff94526591f
Reviewed-on: https://go-review.googlesource.com/127661
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/strings/export_test.go
src/strings/replace.go