]> Cypherpunks repositories - gostls13.git/commit
cmd/link: optimize int parsing
authorShahar Kohanim <skohanim@gmail.com>
Sat, 19 Mar 2016 21:27:41 +0000 (23:27 +0200)
committerDavid Crawshaw <crawshaw@golang.org>
Sun, 20 Mar 2016 13:10:33 +0000 (13:10 +0000)
commit3504945081db0188ce1c7ec72c2ede669ee1b86f
tree17151271dccebb57d7637fffafd02654212d30d4
parent8d9ece9dde3a9dfc62f3e4dba0a48ec830cafb09
cmd/link: optimize int parsing

Speeds up linking cmd/go by ~1.5%:

name       old s/op   new s/op   delta
LinkCmdGo  0.58 ± 6%  0.57 ± 5%  -1.21%  (p=0.000 n=98+99)

Less noisy benchmark, with garbage collection off:

name       old s/op   new s/op   delta
LinkCmdGo  0.49 ± 2%  0.49 ± 2%  -1.79%  (p=0.000 n=98+99)

Change-Id: I0123bcb66a87cbc4d703356e4c5a4035032012ec
Reviewed-on: https://go-review.googlesource.com/20916
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/util.go
src/cmd/link/internal/ld/objfile.go