go/src
Daniel Martí f40cb19aff internal/lazyregexp: add a lazy Regexp package
This was implemented as part of go/doc, but it's going to be useful in
other packages. In particular, many packages under cmd/go like web and
vcs make somewhat heavy use of global regexes, which add a non-trivial
amount of init work to the cmd/go program.

A lazy wrapper around regexp.Regexp will make it trivial to get rid of
the extra cost with a trivial refactor, so make it possible for other
packages in the repository to make use of it. While naming the package,
give the members better names, such as lazyregexp.New and
lazyregexp.Regexp.

We're also considering adding some form of a lazy API to the public
regexp package, so this internal package will allow us to get some
initial experience across std and cmd.

For #29382.

Change-Id: I30b0e72871d5267c309786f95f4cb15c68b2393d
Reviewed-on: https://go-review.googlesource.com/c/164040
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-02-27 15:58:10 +00:00
..
archive src, misc: apply gofmt 2019-02-19 20:38:28 +00:00
bufio bufio: document relationship between UnreadByte/UnreadRune and Peek 2019-01-08 23:47:27 +00:00
builtin
bytes bytes: clean up a test 2019-02-26 23:16:46 +00:00
cmd cmd/go: fix -Wl,--whole-archive for aix/ppc64 2019-02-27 15:56:45 +00:00
compress compress/gzip: clarify that Multistream gzip requires a ByteReader 2019-02-26 23:02:40 +00:00
container container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
context
crypto crypto/tls: enable TLS 1.3 by default 2019-02-27 07:54:19 +00:00
database/sql database/sql/driver: fix typo 2019-02-15 17:23:55 +00:00
debug debug/pe: prevent slice out of bounds access in (*File).ImportedSymbols 2019-02-27 08:10:14 +00:00
encoding encoding/base32: simplify and speed up decoder 2019-02-26 19:20:07 +00:00
errors
expvar
flag flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
fmt fmt: fix an error in documentation for fmt 2019-02-26 23:04:04 +00:00
go internal/lazyregexp: add a lazy Regexp package 2019-02-27 15:58:10 +00:00
hash
html html/template: use strings.Builder 2019-02-26 20:12:09 +00:00
image
index/suffixarray
internal internal/lazyregexp: add a lazy Regexp package 2019-02-27 15:58:10 +00:00
io io: align style of test comments in multi_test.go 2019-02-26 23:01:20 +00:00
log
math math/cmplx: avoid panic in Pow(x, NaN()) 2019-02-27 14:01:03 +00:00
mime mime/multipart: quote boundary in Content-Type if necessary 2018-12-13 23:58:06 +00:00
net Revert "net: add missing error check in test" 2019-02-27 15:42:26 +00:00
os os: clarify that mode argument is only used if file is created 2019-02-26 23:28:32 +00:00
path path/filepath: revert "fix Windows-specific Clean bug" 2019-02-20 18:32:07 +00:00
plugin
reflect reflect: eliminate write barrier for copying result in callReflect 2019-02-01 19:23:02 +00:00
regexp regexp: limit the capacity of slices of bytes returned by FindX 2019-02-26 23:51:17 +00:00
runtime all: fix typos as reported by 'misspell' 2019-02-26 23:02:05 +00:00
sort sort: change let to let's 2019-01-27 01:34:56 +00:00
strconv strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
strings
sync sync/atomic: add 32-bit MIPS to the 64-bit alignment requirement 2019-02-09 23:07:07 +00:00
syscall syscall/js: add a note about a bug in TypedArray 2019-02-27 15:08:01 +00:00
testdata
testing all: fix typos as reported by 'misspell' 2019-02-26 23:02:05 +00:00
text text/template: error on method calls on nil interfaces 2019-02-26 18:05:09 +00:00
time time: rewrite ExampleDuration_Nanoseconds to be more idiomatic. 2019-02-27 02:20:28 +00:00
unicode
unsafe
Make.dist
all.bash
all.bat
all.rc
androidtest.bash misc/android,cmd/dist: move $GOROOT copying to the exec wrapper 2019-02-26 18:00:48 +00:00
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash cmd/dist: build exec wrappers during bootstrap 2019-02-26 17:59:23 +00:00
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc