neoneo-go/pkg/core/transaction
Roman Khimov 892c9785ad transaction: don't allocate new buffer to calculate hash
We can write directly to hash.Hash.

name               old time/op    new time/op    delta
DecodeBinary-8       2.89µs ± 3%    2.82µs ± 5%     ~     (p=0.052 n=10+10)
DecodeJSON-8         13.0µs ± 1%    12.8µs ± 1%   -1.54%  (p=0.002 n=10+8)
DecodeFromBytes-8    2.37µs ± 1%    2.25µs ± 5%   -5.25%  (p=0.000 n=9+10)

name               old alloc/op   new alloc/op   delta
DecodeBinary-8       1.75kB ± 0%    1.53kB ± 0%  -12.79%  (p=0.000 n=10+10)
DecodeJSON-8         3.49kB ± 0%    3.26kB ± 0%   -6.42%  (p=0.000 n=10+10)
DecodeFromBytes-8    1.37kB ± 0%    1.14kB ± 0%  -16.37%  (p=0.000 n=10+10)

name               old allocs/op  new allocs/op  delta
DecodeBinary-8         26.0 ± 0%      23.0 ± 0%  -11.54%  (p=0.000 n=10+10)
DecodeJSON-8           58.0 ± 0%      55.0 ± 0%   -5.17%  (p=0.000 n=10+10)
DecodeFromBytes-8      18.0 ± 0%      15.0 ± 0%  -16.67%  (p=0.000 n=10+10)
2021-08-04 23:43:20 +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 allocate new buffer to calculate hash 2021-08-04 23:43:20 +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