]> Cypherpunks repositories - gostls13.git/commit
encoding/hex: change lookup table from string to array
authorAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 17 Aug 2016 18:34:09 +0000 (20:34 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 17 Aug 2016 23:35:32 +0000 (23:35 +0000)
commit57370a87d80be0ab588eb8bb9a5e2a31f4613355
tree05295383b13253a6c4291ec5f564530c1370fac5
parent17eee31020b982c10a2bf21f446743137968240b
encoding/hex: change lookup table from string to array

name            old time/op  new time/op  delta
Encode/256-4     431ns ± 2%   391ns ± 2%   -9.36%  (p=0.000 n=8+8)
Encode/1024-4   1.68µs ± 0%  1.51µs ± 0%   -9.91%  (p=0.001 n=7+7)
Encode/4096-4   6.68µs ± 0%  6.03µs ± 1%   -9.69%  (p=0.000 n=8+8)
Encode/16384-4  27.0µs ± 1%  24.0µs ± 0%  -11.03%  (p=0.000 n=8+7)

Change-Id: I6994e02f77797349c4e188377d84f97dffe98399
Reviewed-on: https://go-review.googlesource.com/27254
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/hex/hex.go
src/encoding/hex/hex_test.go