]> Cypherpunks repositories - gostls13.git/commit
encoding/base32: eliminate alphabet bounds check
authorNiek Sanders <niek.sanders@gmail.com>
Thu, 15 Jun 2017 16:38:57 +0000 (09:38 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 12 Jun 2018 22:51:30 +0000 (22:51 +0000)
commitb768d82d8e19493e287b9f6c3219cd253d3ccb42
tree3919c0e45429bae6ff8e853fa302ad2118f2c30c
parent3885e864114f9e45ed7d4322e0d802b897124c37
encoding/base32: eliminate alphabet bounds check

name              old time/op   new time/op   delta
EncodeToString-4   35.5µs ± 7%   33.3µs ± 6%  -6.27%   (p=0.008 n=10+9)
DecodeString-4      120µs ± 7%    113µs ± 8%  -5.88%  (p=0.011 n=10+10)

name              old speed     new speed     delta
EncodeToString-4  231MB/s ± 8%  247MB/s ± 5%  +6.55%   (p=0.008 n=10+9)
DecodeString-4    109MB/s ± 7%  116MB/s ± 8%  +6.27%  (p=0.011 n=10+10)

Change-Id: I60bf962464179e35b1711617adbc45a822eaece5
Reviewed-on: https://go-review.googlesource.com/45876
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/base32/base32.go