• Rui Ueyama's avatar
    encoding/base64, encoding/base32: make DecodeString faster · afb7b67a
    Rui Ueyama authored
    Previously, an input string was stripped of newline
    characters at the beginning of DecodeString and then passed
    to Decode. Decode again tried to strip newline characters.
    That's waste of time.
    
    benchmark                 old MB/s     new MB/s  speedup
    BenchmarkDecodeString        38.37        65.20    1.70x
    
    LGTM=dave, bradfitz
    R=golang-codereviews, dave, bradfitz
    CC=golang-codereviews
    https://golang.org/cl/91770051
    afb7b67a
Name
Last commit
Last update
..
ascii85 Loading commit data...
asn1 Loading commit data...
base32 Loading commit data...
base64 Loading commit data...
binary Loading commit data...
csv Loading commit data...
gob Loading commit data...
hex Loading commit data...
json Loading commit data...
pem Loading commit data...
xml Loading commit data...
encoding.go Loading commit data...