neo-go/pkg
Roman Khimov fe0ec91636 vm: optimize reversing items on the stack
Before:
BenchmarkOpcodes/REVERSE3/null-8                   10000               335 ns/op
BenchmarkOpcodes/REVERSE3/integer-8                10000               355 ns/op
BenchmarkOpcodes/REVERSE3/big_bytes-8              10000               344 ns/op
BenchmarkOpcodes/REVERSE4/null-8                   10000               353 ns/op
BenchmarkOpcodes/REVERSE4/integer-8                10000               336 ns/op
BenchmarkOpcodes/REVERSE4/big_bytes-8              10000               324 ns/op
BenchmarkOpcodes/REVERSEN/5/null-8                 10000               350 ns/op
BenchmarkOpcodes/REVERSEN/5/integer-8              10000               358 ns/op
BenchmarkOpcodes/REVERSEN/5/big_bytes-8            10000               351 ns/op
BenchmarkOpcodes/REVERSEN/1024/null-8              10000            982413 ns/op
BenchmarkOpcodes/REVERSEN/1024/integer-8                   10000            994926 ns/op
BenchmarkOpcodes/REVERSEN/1024/big_bytes-8                 10000            992951 ns/op

After:
BenchmarkOpcodes/REVERSE3/null-8                   10000               241 ns/op
BenchmarkOpcodes/REVERSE3/integer-8                10000               255 ns/op
BenchmarkOpcodes/REVERSE3/big_bytes-8              10000               249 ns/op
BenchmarkOpcodes/REVERSE4/null-8                   10000               249 ns/op
BenchmarkOpcodes/REVERSE4/integer-8                10000               267 ns/op
BenchmarkOpcodes/REVERSE4/big_bytes-8              10000               292 ns/op
BenchmarkOpcodes/REVERSEN/5/null-8                 10000               337 ns/op
BenchmarkOpcodes/REVERSEN/5/integer-8              10000               327 ns/op
BenchmarkOpcodes/REVERSEN/5/big_bytes-8            10000               293 ns/op
BenchmarkOpcodes/REVERSEN/1024/null-8              10000              5414 ns/op
BenchmarkOpcodes/REVERSEN/1024/integer-8                   10000              5487 ns/op
BenchmarkOpcodes/REVERSEN/1024/big_bytes-8                 10000              5609 ns/op
2020-10-15 16:19:59 +03:00
..
compiler compiler: do not DROP return value with type assertion 2020-10-13 19:14:44 +03:00
config *: use proper YAML library import path, fix #1306 2020-08-12 16:31:06 +03:00
consensus core: move CalculateNetworkFee to a separate package 2020-10-07 10:04:19 +03:00
core Merge pull request #1479 from nspcc-dev/examples/deploy 2020-10-14 12:32:21 +03:00
crypto keys: don't panic if signature has invalid size 2020-10-07 10:04:19 +03:00
encoding state: use more efficient encoding for amount 2020-09-21 21:51:33 +03:00
internal hash: introduce memory-optimized merkle root hash calculation routine 2020-09-15 18:38:15 +03:00
interop Merge pull request #1375 from nspcc-dev/compiler/types 2020-09-16 14:43:50 +03:00
io always wrap errors when creating new ones with fmt.Errorf() 2020-08-07 12:21:52 +03:00
network network: try connecting to seeds indefinitely, use them with 0 pool 2020-10-13 19:02:10 +03:00
rpc Merge pull request #1471 from nspcc-dev/rpc-server-logging-improvement 2020-10-08 16:45:30 +03:00
smartcontract smartcontract: implement GetDefaultHonestNodeCount 2020-10-08 13:48:14 +03:00
util *: use proper YAML library import path, fix #1306 2020-08-12 16:31:06 +03:00
vm vm: optimize reversing items on the stack 2020-10-15 16:19:59 +03:00
wallet cli: add tests for wallet import-deployed 2020-09-18 12:07:02 +03:00