1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:21:26 -06:00
go/src/pkg
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
..
archive archive/tar: Do not panic on Read if uninitialized 2014-05-15 15:18:05 -07:00
bufio bufio: handle excessive white space in ScanWords 2014-06-16 12:59:10 -07:00
builtin
bytes bytes, strings: optimize Repeat 2014-06-11 19:03:59 -07:00
compress compress/lzw: add commentary that TIFF's LZW differs from the standard 2014-06-13 17:44:29 +10:00
container container/heap: update example code 2014-05-15 13:58:13 -07:00
crypto crypto/tls: fix typo referencing the required Config field 2014-06-03 18:11:17 +10:00
database/sql database/sql/driver: correct method name in comment 2014-05-21 06:48:41 -07:00
debug debug/elf: support DWARF that needs relocs for 386 2014-06-03 16:39:40 -07:00
encoding encoding/base64, encoding/base32: make Encode faster 2014-06-18 12:05:46 -07:00
errors
expvar all: spelling tweaks, A-G 2014-04-29 12:44:40 -04:00
flag flag: document that Bool also accepts "T" and "F" 2014-04-16 17:14:48 -07:00
fmt fmt: include ±Inf and NaN in the complex format test 2014-06-18 10:57:18 -07:00
go go/build: update doc.go for go1.3 build tag. 2014-06-18 08:47:05 -07:00
hash all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
html text/template,html/template: document that partial results may be written on error 2014-05-19 14:29:45 -07:00
image image/png: fix compare-to-golden-file test. 2014-06-13 17:43:02 +10:00
index/suffixarray
io io: copy slice argument in MultiReader and MultiWriter 2014-05-12 23:38:35 -04:00
log log/syslog: document if network=="" for Dial, it will connect to local syslog server. 2014-04-28 14:29:45 -04:00
math math: remove Nextafter64 alias in favor of existing Nextafter 2014-06-11 14:24:16 -07:00
mime mime/multipart: fix format 2014-06-11 17:39:34 -07:00
net net: avoid array copy when shuffling SRV records 2014-06-16 18:00:28 -07:00
os os: disable TestGetppid on plan9 2014-06-14 16:47:40 +10:00
path build: make nacl pass 2014-05-20 12:10:19 -04:00
reflect doc: mention that reflect.SetMapIndex no longer panics 2014-05-23 17:39:58 -07:00
regexp regexp: hide one-pass code from exported API 2014-05-28 14:08:44 -04:00
runtime runtime: fix gogetcallerpc. 2014-06-17 21:59:50 -07:00
sort std lib: fix various typos in comments 2014-05-02 13:17:55 -07:00
strconv strconv: CanBackquote should reject \x7F 2014-03-19 10:16:48 +11:00
strings strings: add fast path to Replace 2014-06-17 22:08:46 -07:00
sync sync/atomic: fix unimportant assembly errors found by go vet 2014-05-15 16:31:20 -04:00
syscall syscall: implement syscall.Getppid() on Windows 2014-06-14 15:51:00 +10:00
testing testing: fix timing format inconsistency 2014-06-18 10:59:25 -07:00
text text/scanner: fix comment 2014-06-17 09:34:11 -07:00
time time: change formatting of microseconds duration to SI modifier 2014-06-12 17:01:13 -07:00
unicode unicode: fix doc typo 2014-05-11 22:06:00 -07:00
unsafe