neoneo-go/pkg
Roman Khimov af8a4da6d9 stackitem: use type switch more effectively
Reduce the number of allocations, save some time.

name               old time/op    new time/op    delta
EncodeBinary-8       51.2µs ± 8%    44.6µs ± 7%  -12.79%  (p=0.008 n=5+5)
SerializeSimple-8     523ns ± 5%     449ns ± 4%  -14.27%  (p=0.008 n=5+5)

name               old alloc/op   new alloc/op   delta
EncodeBinary-8        329kB ± 0%     329kB ± 0%   -0.12%  (p=0.008 n=5+5)
SerializeSimple-8      432B ± 0%      408B ± 0%   -5.56%  (p=0.008 n=5+5)

name               old allocs/op  new allocs/op  delta
EncodeBinary-8         36.0 ± 0%      20.0 ± 0%  -44.44%  (p=0.008 n=5+5)
SerializeSimple-8      7.00 ± 0%      6.00 ± 0%  -14.29%  (p=0.008 n=5+5)
2021-12-01 21:36:35 +03:00
..
compiler Merge pull request #2270 from nspcc-dev/vm-invoked-contracts 2021-12-01 11:27:27 +03:00
config rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00
consensus rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
core *: use internal variables for simple big.NewInt() values 2021-12-01 21:36:25 +03:00
crypto *: use internal variables for simple big.NewInt() values 2021-12-01 21:36:25 +03:00
encoding *: use internal variables for simple big.NewInt() values 2021-12-01 21:36:25 +03:00
interop compiler: remove custom logic for util builtins 2021-10-23 16:12:47 +03:00
io io: optimize WriteString, avoid allocation 2021-12-01 21:36:25 +03:00
neotest neotest: extend Executor with DeployContractCheckFAULT 2021-11-18 12:28:04 +03:00
network network: fix data race in TestHandleMPTData, fix #2241 2021-11-15 12:37:01 +03:00
rpc Merge pull request #2270 from nspcc-dev/vm-invoked-contracts 2021-12-01 11:27:27 +03:00
services Merge pull request #2270 from nspcc-dev/vm-invoked-contracts 2021-12-01 11:27:27 +03:00
smartcontract *: use NEP-XX naming consistently in docs/comments 2021-11-19 12:58:46 +03:00
util util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00
vm stackitem: use type switch more effectively 2021-12-01 21:36:35 +03:00
wallet Merge pull request #2264 from nspcc-dev/fix-win-tests 2021-11-29 11:25:35 +03:00