neo-go/pkg/io
Roman Khimov 7808762ba0 transaction: avoid reencoding and reading what can't be read
name               old time/op    new time/op    delta
DecodeFromBytes-8    1.79µs ± 2%    1.46µs ± 4%  -18.44%  (p=0.000 n=10+10)

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

name               old allocs/op  new allocs/op  delta
DecodeFromBytes-8      10.0 ± 0%       8.0 ± 0%  -20.00%  (p=0.000 n=10+10)
2021-08-23 21:41:38 +03:00
..
binaryBufWriter.go io: drop one allocation from NewBufBinWriter 2021-08-20 11:38:42 +03:00
binaryReader.go transaction: avoid reencoding and reading what can't be read 2021-08-23 21:41:38 +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