• Rui Ueyama's avatar
    bytes, strings: optimize Repeat · 7bcbb65d
    Rui Ueyama authored
    Call copy with as large buffer as possible to reduce the
    number of function calls.
    
    benchmark                 old ns/op    new ns/op    delta
    BenchmarkBytesRepeat            540          162  -70.00%
    BenchmarkStringsRepeat          563          177  -68.56%
    
    LGTM=josharian
    R=golang-codereviews, josharian, dave, dvyukov
    CC=golang-codereviews
    https://golang.org/cl/90550043
    7bcbb65d
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...