neo-go/pkg/vm
Roman Khimov 324f4c265b stackitem: don't copy existing slices for TryBytes
Most often we only need to read them and it doesn't require copying. Make an
explicit copy (and copy only things we need!) where needed.

After the recent neo-vm tests update our vm package testing time jumped to
~12s, with this change it's now more like ~8s.
2020-08-22 23:36:38 +03:00
..
cli vm: make (*Context).IP() return instruction pointer 2020-08-21 08:44:32 +03:00
emit core: replace interop names with named constants 2020-08-14 14:21:54 +03:00
opcode vm: support exceptions 2020-07-24 10:41:41 +03:00
stackitem stackitem: don't copy existing slices for TryBytes 2020-08-22 23:36:38 +03:00
testdata vm: update neo-vm tests, simplify parsing 2020-08-22 23:35:29 +03:00
context.go stackitem: change Bool() to TryBool(), prepare for its failures 2020-08-21 20:55:20 +03:00
contract_checks.go core: replace interop names with named constants 2020-08-14 14:21:54 +03:00
contract_checks_test.go core: change verification scripts to new format 2020-04-20 11:55:24 +03:00
debug_test.go vm: fix debugger and add tests 2020-08-18 11:26:27 +03:00
exception.go stackitem: change Bool() to TryBool(), prepare for its failures 2020-08-21 20:55:20 +03:00
interop.go core: replace interop names with named constants 2020-08-14 14:21:54 +03:00
interop_iterators.go core: adjust System.Enumerator.Create interop 2020-07-23 07:51:24 +03:00
json_test.go vm: update neo-vm tests, simplify parsing 2020-08-22 23:35:29 +03:00
ref_counter.go vm: move StackItem to a separate package 2020-06-08 13:27:08 +03:00
ref_counter_test.go vm: move StackItem to a separate package 2020-06-08 13:27:08 +03:00
slot.go vm: allow to initialize static slot in method 2020-07-27 13:00:35 +03:00
slot_test.go vm: allow to initialize static slot in method 2020-07-27 13:00:35 +03:00
stack.go stackitem: change Bool() to TryBool(), prepare for its failures 2020-08-21 20:55:20 +03:00
stack_test.go vm: allow to convert stack to a slice 2020-07-31 16:07:16 +03:00
state.go remove github.com/pkg/errors from dependencies 2020-08-07 12:21:52 +03:00
state_test.go core, vm: store VMState as byte instead of string 2020-07-29 10:14:08 +03:00
vm.go stackitem: don't copy existing slices for TryBytes 2020-08-22 23:36:38 +03:00
vm_test.go vm: add tests for ByteString enumerator/iterator 2020-08-18 11:24:48 +03:00