aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-08-21 09:54:36 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-08-23 13:49:52 +0000
commit29e6bdc69c580cf6e9c4cc27600b7f4e2b0def9f (patch)
treeade293b5cf0c308a7f03a3e7cebf6b5e892299fd /src/syscall/exec_linux.go
parent61043d467115365dbbc0937510c9b91fa4a28f1d (diff)
downloadgo-29e6bdc69c580cf6e9c4cc27600b7f4e2b0def9f.tar.xz
runtime: strength reduce key pointer calculation in mapdelete_fast*
Move the tophash checks after the equality/length checks. For fast32/fast64, since we've done a full equality check already, just check whether tophash is empty instead of checking tophash. This is cheaper and allows us to skip calculating tophash. These changes are modeled on the changes in CL 57590, which were polished based on benchmarking. Benchmarking directly is impeded by #21546. Change-Id: I0e17163028e34720310d1bf8f95c5ef42d223e00 Reviewed-on: https://go-review.googlesource.com/57611 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions