neoneo-go/pkg/core/transaction
Roman Khimov d487b54612 transaction: don't recalculate size when decoding from buffer
name               old time/op    new time/op    delta
DecodeBinary-8       3.17µs ± 6%    3.14µs ± 5%     ~     (p=0.579 n=10+10)
DecodeJSON-8         12.8µs ± 3%    12.6µs ± 3%     ~     (p=0.105 n=10+10)
DecodeFromBytes-8    3.45µs ± 4%    2.73µs ± 2%  -20.70%  (p=0.000 n=10+9)

name               old alloc/op   new alloc/op   delta
DecodeBinary-8       1.82kB ± 0%    1.82kB ± 0%     ~     (all equal)
DecodeJSON-8         3.49kB ± 0%    3.49kB ± 0%     ~     (all equal)
DecodeFromBytes-8    1.82kB ± 0%    1.44kB ± 0%  -21.05%  (p=0.000 n=10+10)

name               old allocs/op  new allocs/op  delta
DecodeBinary-8         29.0 ± 0%      29.0 ± 0%     ~     (all equal)
DecodeJSON-8           58.0 ± 0%      58.0 ± 0%     ~     (all equal)
DecodeFromBytes-8      29.0 ± 0%      21.0 ± 0%  -27.59%  (p=0.000 n=10+10)
2021-08-04 23:13:58 +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: don't recalculate size when decoding from buffer 2021-08-04 23:13:58 +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 oracle: check response Content-Type 2021-07-12 13:13:48 +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 *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
signer_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
transaction.go transaction: don't recalculate size when decoding from buffer 2021-08-04 23:13:58 +03:00
transaction_test.go transaction: drop Network from Transaction 2021-03-26 13:45:18 +03:00
witness.go transaction: fix witness script length limits 2020-10-07 18:05:23 +03:00
witness_scope.go transaction: rename FeeOnly to None 2020-10-01 15:28:19 +03:00
witness_scope_string.go transaction: rename FeeOnly to None 2020-10-01 15:28:19 +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