• Josh Bleecher Snyder's avatar
    runtime: strength reduce key pointer calculation in mapdelete_fast* · 29e6bdc6
    Josh Bleecher Snyder authored
    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: 's avatarKeith Randall <khr@golang.org>
    29e6bdc6
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...