neo-go/pkg/core/transaction
Roman Khimov ffeb3b8473 transaction: microoptimize Hash()
It doesn't cost much, but it's used _a lot_, so optimizing it makes sense.

name      old time/op    new time/op    delta
TxHash-8    4.89ns ± 5%    0.54ns ± 2%  -88.86%  (p=0.008 n=5+5)

name      old alloc/op   new alloc/op   delta
TxHash-8     0.00B          0.00B          ~     (all equal)

name      old allocs/op  new allocs/op  delta
TxHash-8      0.00           0.00          ~     (all equal)
2021-12-02 14:48:35 +03:00
..
attribute.go core: add NotaryAssisted transaction attribute 2020-11-25 18:37:29 +03:00
attribute_test.go transaction: marshal oracle response codes as strings 2021-04-06 22:50:42 +03:00
attrtype.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
attrtype_string.go core: add NotaryAssisted transaction attribute 2020-11-25 18:37:29 +03:00
bench_test.go transaction: add benchmark for transaction serialization 2021-08-09 12:01:38 +03:00
conflicts.go core: do not rewrite binreader error for bad Conflicts attr 2020-11-25 18:37:24 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
helper_test.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
not_valid_before.go core: check the length of NotValidBefore attr while decoding 2020-11-25 18:37:29 +03:00
notary_assisted.go core: add NotaryAssisted transaction attribute 2020-11-25 18:37:29 +03:00
oracle.go transaction: fix ContentTypeNotSupported oracle code processing 2021-09-14 15:18:38 +03:00
oracle_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
oracleresponsecode_string.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
reserved.go core: reserve attributes range for experimantal purposes 2020-10-23 11:04:59 +03:00
signer.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
signer_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
transaction.go transaction: microoptimize Hash() 2021-12-02 14:48:35 +03:00
transaction_test.go transaction: microoptimize Hash() 2021-12-02 14:48:35 +03:00
witness.go transaction: fix witness script length limits 2020-10-07 18:05:23 +03:00
witness_condition.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_condition_test.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_rule.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_rule_test.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_scope.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_scope_string.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witness_scope_test.go transaction: fix ineffassign GoReportCard issue 2020-08-14 12:08:16 +03:00
witness_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
witnessaction_string.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witnessconditiontype_string.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00