neoneo-go/pkg/util
Evgeniy Stratonikov 8c31831626 util: reduce allocations in util.Uint256DecodeStringLE
It is used a lot in clients (including our benchmark).
`Uint160` is already optimized.

```
name                     old time/op    new time/op    delta
Uint256DecodeStringLE-8     150ns ±15%     112ns ± 3%  -25.23%  (p=0.000 n=10+10)

name                     old alloc/op   new alloc/op   delta
Uint256DecodeStringLE-8     96.0B ± 0%     64.0B ± 0%  -33.33%  (p=0.000 n=10+10)

name                     old allocs/op  new allocs/op  delta
Uint256DecodeStringLE-8      2.00 ± 0%      1.00 ± 0%  -50.00%  (p=0.000 n=10+10)
```

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2021-08-17 16:53:39 +03:00
..
bitfield *: remove dead code 2021-05-12 18:13:14 +03:00
slice slice: introduce common Copy helper 2021-07-19 22:57:55 +03:00
uint160.go util: move ArrayReverse into package of its own 2021-07-19 22:57:55 +03:00
uint160_test.go stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00
uint256.go util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00
uint256_test.go util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00