summaryrefslogtreecommitdiff
path: root/internal/stupidgcm/gcm.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-09-07 12:44:42 +0200
committerJakob Unterwurzacher2021-09-07 18:14:58 +0200
commitd9510d0c0ba2ef31145499f4d49ab1d10c03de94 (patch)
tree7320743431e14df60f711172e9a79a0c6e247373 /internal/stupidgcm/gcm.go
parent39b1070506436dcf35ac83c7f8cee65067856062 (diff)
stupidgcm: NewChacha20poly1305: avoid slice append
I noticed that growslice() shows up in the cpuprofile. Avoiding slice append for the private jey copy gives a 0.6% speedup: gocryptfs/internal/speed$ benchstat old new name old time/op new time/op delta StupidXchacha-4 5.68µs ± 0% 5.65µs ± 0% -0.63% (p=0.008 n=5+5) name old speed new speed delta StupidXchacha-4 721MB/s ± 0% 725MB/s ± 0% +0.63% (p=0.008 n=5+5)
Diffstat (limited to 'internal/stupidgcm/gcm.go')
0 files changed, 0 insertions, 0 deletions