• Josh Bleecher Snyder's avatar
    runtime: avoid calling adjustpointers unnecessarily · 2e7e5777
    Josh Bleecher Snyder authored
    adjustpointers loops over a bitmap.
    If the length of that bitmap is zero,
    we can skip making the call entirely.
    This speeds up stack copying when there are
    no pointers present in either args or locals.
    
    name                old time/op  new time/op  delta
    StackCopyPtr-8       101ms ± 4%    90ms ± 4%  -10.95%  (p=0.000 n=87+93)
    StackCopy-8         80.1ms ± 4%  72.6ms ± 4%   -9.41%  (p=0.000 n=98+100)
    StackCopyNoCache-8   121ms ± 3%   113ms ± 3%   -6.57%  (p=0.000 n=98+97)
    
    Change-Id: I7a272e19bc9a14fa3e3318771ebd082dc6247d25
    Reviewed-on: https://go-review.googlesource.com/104737
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    2e7e5777
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...