cosmos-sdk/crypto
Cuong Manh Le 72873a072f
crypto/types: optimize compact bit array one count (#9216)
By using bits.OnesCount8 instead of bitwise operations.

Benchmark result on Apple M1:

name                     old time/op    new time/op    delta
NumTrueBitsBefore/new-8    88.5ns ± 1%     9.1ns ± 0%  -89.68%  (p=0.000 n=10+10)

name                     old alloc/op   new alloc/op   delta
NumTrueBitsBefore/new-8     0.00B          0.00B          ~     (all equal)

name                     old allocs/op  new allocs/op  delta
NumTrueBitsBefore/new-8      0.00           0.00          ~     (all equal)

Fixes #9125
2021-04-30 21:08:14 +00:00
..
codec crypto: add secp256r1 (#8559) 2021-03-04 12:29:48 +00:00
hd crypto/hd: make DerivePrivateKeyForPath error and not panic on trailing slashes (#8607) 2021-02-17 10:30:04 +00:00
keyring codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
keys codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
ledger codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
types crypto/types: optimize compact bit array one count (#9216) 2021-04-30 21:08:14 +00:00
armor.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
armor_test.go all: skip noisy/faulty benchmarks + add b.ReportAllocs for every benchmark (#8856) 2021-03-11 15:59:13 +00:00
bcrypt_readme.md merge crypto/keys/mintkey into crypto/ (#5880) 2020-03-27 10:24:19 +01:00