1
0
mirror of https://github.com/golang/go synced 2024-10-04 14:21:21 -06:00
go/src
Rui Ueyama 2fbfe55e63 encoding/base64, encoding/base32: make Encode faster
Storing temporary values to a slice is slower than storing
them to local variables of type byte.

benchmark                         old MB/s     new MB/s  speedup
BenchmarkEncodeToStringBase32       102.21       156.66    1.53x
BenchmarkEncodeToStringBase64       124.25       177.91    1.43x

LGTM=crawshaw
R=golang-codereviews, crawshaw, bradfitz, dave
CC=golang-codereviews
https://golang.org/cl/109820045
2014-06-18 12:05:46 -07:00
..
cmd undo CL 105260044 / afd6f214cc81 2014-06-17 08:10:21 -07:00
lib9 lib9: restore argv0 initialization code. 2014-04-21 00:08:39 -04:00
libbio libbio: add casts to eliminate -Wconversion warning 2014-04-14 09:36:47 -07:00
liblink liblink: fix field tracking 2014-05-20 00:30:58 -04:00
pkg encoding/base64, encoding/base32: make Encode faster 2014-06-18 12:05:46 -07:00
all.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
make.bat
Make.dist
make.rc lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
nacltest.bash nacltest.bash, misc/nacl/README: update NaCl docs. 2014-06-10 20:20:49 -04:00
race.bash race.bash,race.bat: unset GOROOT_FINAL during tests 2014-05-07 16:34:21 +10:00
race.bat race.bash,race.bat: unset GOROOT_FINAL during tests 2014-05-07 16:34:21 +10:00
run.bash build: remove goplay from run.bash and run.bat 2014-06-02 08:44:47 +10:00
run.bat build: remove goplay from run.bash and run.bat 2014-06-02 08:44:47 +10:00
run.rc build: don't build goplay in run.rc. 2014-06-01 19:20:46 -04:00
sudo.bash