]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't use lookupN for statictmps
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 31 Mar 2017 17:28:54 +0000 (10:28 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 31 Mar 2017 19:25:01 +0000 (19:25 +0000)
commit3237af2da88c82d4938b392d2644d65637a11526
tree61c3c698ff77f23659cad321cffc45b10bc81f2e
parent9e28ea0c08d00fda167f47669711cefd83aa942a
cmd/compile: don't use lookupN for statictmps

The names never occur more than once,
so interning the results is counterproductive.

The impact is not very big, but neither is the fix.

name     old time/op     new time/op     delta
Unicode     90.2ms ± 3%     88.3ms ± 5%  -2.10%  (p=0.000 n=94+98)

Change-Id: I1e3a24433db4ae0c9a6e98166568941824ff0779
Reviewed-on: https://go-review.googlesource.com/39193
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/sinit.go