neo-go/pkg/io
Evgeniy Stratonikov c69670c85b io: use a single slice for numbers
Slice takes 24 bytes of memory, while we really need only 9.
```
name                 old time/op    new time/op    delta
Transaction_Bytes-8     667ns ±17%     583ns ± 6%  -12.50%  (p=0.000 n=10+10)
GetVarSize-8            283ns ±11%     189ns ± 5%  -33.37%  (p=0.000 n=10+10)

name                 old alloc/op   new alloc/op   delta
Transaction_Bytes-8    1.01kB ± 0%    0.88kB ± 0%  -12.70%  (p=0.000 n=10+10)
GetVarSize-8             184B ± 0%       56B ± 0%  -69.57%  (p=0.000 n=10+10)

name                 old allocs/op  new allocs/op  delta
Transaction_Bytes-8      7.00 ± 0%      6.00 ± 0%  -14.29%  (p=0.000 n=10+10)
GetVarSize-8             3.00 ± 0%      2.00 ± 0%  -33.33%  (p=0.000 n=10+10)
```

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2021-08-09 12:04:28 +03:00
..
binaryBufWriter.go Revert "mpt: do not allocate new buffer when updating dirty node" 2020-12-25 18:42:47 +03:00
binaryReader.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
binaryrw_test.go io: allow to restrict slice size in ReadVarBytes 2020-06-27 12:17:27 +03:00
binaryWriter.go io: use a single slice for numbers 2021-08-09 12:04:28 +03:00
fileWriter.go always wrap errors when creating new ones with fmt.Errorf() 2020-08-07 12:21:52 +03:00
fileWriter_test.go *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
serializable.go io: optimize BinWriter.WriteArray() 2019-12-09 14:59:49 +03:00
size.go *: drop unnecessary fmt.Sprintf uses 2021-05-12 18:29:39 +03:00
size_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00