neoneo-go/pkg/io
Roman Khimov d0620b24ec io: simplify BinReader uint buffer
Similar to c69670c85b, allows to eliminate one
allocation and reduce memory footprint a bit (tested on tx decoding):

name               old time/op    new time/op    delta
DecodeFromBytes-8    1.78µs ± 3%    1.79µs ± 2%    ~     (p=1.000 n=10+10)

name               old alloc/op   new alloc/op   delta
DecodeFromBytes-8      888B ± 0%      800B ± 0%  -9.91%  (p=0.000 n=10+10)

name               old allocs/op  new allocs/op  delta
DecodeFromBytes-8      11.0 ± 0%      10.0 ± 0%  -9.09%  (p=0.000 n=10+10)
2021-08-23 21:18:07 +03:00
..
binaryBufWriter.go io: drop one allocation from NewBufBinWriter 2021-08-20 11:38:42 +03:00
binaryReader.go io: simplify BinReader uint buffer 2021-08-23 21:18:07 +03:00
binaryrw_test.go io: allow to restrict slice size in ReadVarBytes 2020-06-27 12:17:27 +03:00
binaryWriter.go io: add Grow to BinWriter 2021-08-09 12:05:31 +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