neoneo-go/pkg/io
Roman Khimov e236ac4067 io: optimize WriteString, avoid allocation
name                          old time/op    new time/op    delta
AppExecResult_EncodeBinary-8     477ns ± 0%     467ns ± 3%     ~     (p=0.190 n=4+5)

name                          old alloc/op   new alloc/op   delta
AppExecResult_EncodeBinary-8      376B ± 0%      368B ± 0%   -2.13%  (p=0.008 n=5+5)

name                          old allocs/op  new allocs/op  delta
AppExecResult_EncodeBinary-8      5.00 ± 0%      4.00 ± 0%  -20.00%  (p=0.008 n=5+5)
2021-12-01 21:36:25 +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: optimize WriteString, avoid allocation 2021-12-01 21:36:25 +03:00
fileWriter.go *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
fileWriter_test.go *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +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