cosmos-sdk/crypto/types
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
..
multisig multisig checks and optimization (#8600) 2021-02-23 15:55:06 +00:00
compact_bit_array.go crypto/types: optimize compact bit array one count (#9216) 2021-04-30 21:08:14 +00:00
compact_bit_array_test.go crypto/types: fix negative index accesses in CompactUnmarshal,GetIndex,SetIndex (#9196) 2021-04-26 16:40:27 +00:00
multisig.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
types.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00