1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:14:44 -07:00
go/src
Paul Borman 07b8011393 text/template: improve lexer performance in finding left delimiters.
The existing implementation calls l.next for each run up to the next
instance of the left delimiter ({{).  For ascii text, this is multiple
function calls per byte.  Change to use strings.Index to find the left
delimiter.  The performace improvement ranges from 1:1 (no text outside
of {{}}'s) to multiple times faster (9:1 was seen on 8K of text with no
{{ }}'s).

Change-Id: I2f82bea63b78b6714f09a725f7b2bbb00a3448a3
Reviewed-on: https://go-review.googlesource.com/24863
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
2016-09-13 12:51:13 +00:00
..
archive archive/tar: reapply Header.Size to regFileReader after merging 2016-09-02 21:58:53 +00:00
bufio
builtin builtin: clarify that make(map[K]V, n) allocates space for n elements 2016-09-10 12:57:37 +00:00
bytes bytes: improve WriteRune performance 2016-09-08 17:15:28 +00:00
cmd cmd/link: fix -buildmode=pie / -linkshared combination 2016-09-13 02:40:30 +00:00
compress compress/flate: clarify the behavior of Writer.Flush 2016-09-04 03:09:08 +00:00
container
context context: add examples 2016-09-09 22:50:41 +00:00
crypto crypto/rsa: remove unused variable y 2016-09-11 23:38:44 +00:00
database/sql
debug all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
encoding encoding/hex: fix example function name 2016-09-10 21:40:16 +00:00
errors
expvar
flag flag: use strconv instead of fmt in values' String funcs 2016-09-10 10:29:44 +00:00
fmt doc: avoid mentioning non-existence of u flag to fmt.Printf. 2016-09-09 00:04:21 +00:00
go go/build: add help info for unset $GOPATH 2016-09-10 00:27:43 +00:00
hash hash/crc32: cleanup code and improve tests 2016-08-31 15:17:57 +00:00
html
image image/draw: optimize drawFillOver as drawFillSrc for opaque fills. 2016-09-09 01:17:26 +00:00
index/suffixarray
internal internal/testenv: add GoTool 2016-09-10 20:50:12 +00:00
io io/ioutil: return better error when TempDir called with non-extant dir 2016-09-08 15:08:35 +00:00
log
math runtime, math/big: allow R0 on s390x to contain values other than 0 2016-09-12 18:06:01 +00:00
mime mime/quotedprintable: accept trailing soft line-break at the end of message 2016-09-11 01:51:07 +00:00
net net/http: skip test needing good DNS in short mode, except on builders 2016-09-12 18:30:01 +00:00
os os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
path path/filepath: handle "C:." correctly in EvalSymlinks on Windows 2016-09-05 00:53:32 +00:00
reflect reflect: update location of vet tool in comment 2016-09-09 15:02:46 +00:00
regexp regexp: reduce mallocs in Regexp.Find* and Regexp.ReplaceAll*. 2016-09-06 17:04:31 +00:00
runtime cmd/compile, runtime/internal/atomic: intrinsify And8, Or8 on ARM64 2016-09-13 02:09:15 +00:00
sort
strconv strconv: fix function name in errors for Atoi 2016-09-04 00:17:58 +00:00
strings strings: use AVX2 for Index if available 2016-09-07 10:43:13 +00:00
sync
syscall syscall: avoid convT2I allocs for ERROR_IO_PENDING instead of WSAEINPROGRESS 2016-09-11 01:42:30 +00:00
testing testing: improve the documentation for the -run flag 2016-09-12 06:12:35 +00:00
text text/template: improve lexer performance in finding left delimiters. 2016-09-13 12:51:13 +00:00
time time: improve Truncate and Round documentation 2016-09-12 22:07:17 +00:00
unicode unicode/utf8: reduce bounds checks in EncodeRune 2016-09-03 20:05:36 +00:00
unsafe
vendor/golang_org/x/net vendor: add golang.org/x/net/idna to the vendor directory for Punycode 2016-09-11 16:30:46 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc