• 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
..
buffer.go Loading commit data...
buffer_test.go Loading commit data...
bytes.go Loading commit data...
bytes.s Loading commit data...
bytes_decl.go Loading commit data...
bytes_test.go Loading commit data...
compare_test.go Loading commit data...
equal_test.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
reader.go Loading commit data...
reader_test.go Loading commit data...