num-bigint
num-bigint copied to clipboard
Optimize twos_complement and from_signed_bytes_be
| from_signed_bytes_be with a 20 byte negative number | time |
|---|---|
| Currently | 91 ns/iter (+/- 3) |
| Only twos_complement optimization | 88 ns/iter (+/- 2) |
| This PR | 78 ns/iter (+/- 5) |