]> Cypherpunks repositories - gostls13.git/commit
crypto/des: faster block expansion.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 26 Jul 2013 07:10:29 +0000 (09:10 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 26 Jul 2013 07:10:29 +0000 (09:10 +0200)
commita0f74093b2f3aa0d8d2b69c881a75f40d296355f
tree8aa1ad1c5edfb0f9398b1d45fcf077b8ca0c382e
parenta79e125b2f4c064f54689705fe2dd70899012df5
crypto/des: faster block expansion.

On amd64:

benchmark           old ns/op    new ns/op    delta
BenchmarkEncrypt         6170         3593  -41.77%
BenchmarkDecrypt         6209         3564  -42.60%

benchmark            old MB/s     new MB/s  speedup
BenchmarkEncrypt         1.30         2.23    1.72x
BenchmarkDecrypt         1.29         2.24    1.74x

Update #4299.

R=golang-dev, agl, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/11874043
src/pkg/crypto/des/block.go
src/pkg/crypto/des/const.go
src/pkg/crypto/des/des_test.go