plugeth/core/types
Marius van der Wijden af5c97aebe
core, txpool: less allocations when handling transactions (#21232)
* core: use uint64 for total tx costs instead of big.Int

* core: added local tx pool test case

* core, crypto: various allocation savings regarding tx handling

* Update core/tx_list.go

* core: added tx.GasPriceIntCmp for comparison without allocation

adds a method to remove unneeded allocation in comparison to tx.gasPrice

* core: handle pools full of locals better

* core/tests: benchmark for tx_list

* core/txlist, txpool: save a reheap operation, avoid some bigint allocs

Co-authored-by: Martin Holst Swende <martin@swende.se>
2020-07-01 19:35:26 +02:00
..
block_test.go core, eth, les, light: scope receipt functionality a bit cleaner 2019-04-15 13:42:26 +03:00
block.go core: types: less allocations when hashing and tx handling (#21265) 2020-06-30 11:59:06 +02:00
bloom9_test.go core: Simplify bloom9 tests with available convenience method TestBytes 2016-05-22 16:42:46 -07:00
bloom9.go all: simplify s[:] to s where s is a slice (#17673) 2018-09-14 22:07:13 +02:00
derive_sha.go core, trie: new trie 2015-09-22 22:53:49 +02:00
gen_header_json.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_log_json.go core: remove unnecessary fields in logs, receipts and tx lookups (#17106) 2019-02-21 15:14:35 +02:00
gen_receipt_json.go core/types: add block location fields to receipt (#17662) 2019-03-27 13:39:25 +01:00
gen_tx_json.go core/types: add block location fields to receipt (#17662) 2019-03-27 13:39:25 +01:00
log_test.go core/types: use gencodec for JSON marshaling code 2017-03-07 12:45:12 +01:00
log.go core, eth, les, light: store transaction receipts without txHash and gasCost 2019-04-15 13:15:39 +03:00
receipt_test.go core/types: fix cummulative gas bug and legacy decoding tests 2019-04-16 09:50:11 +03:00
receipt.go core/types: fix cummulative gas bug and legacy decoding tests 2019-04-16 09:50:11 +03:00
transaction_signing_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
transaction_signing.go crypto: add SignatureLength constant and use it everywhere (#19996) 2019-08-22 15:14:06 +02:00
transaction_test.go all: replace t.Log(); t.FailNow() with t.Fatal() (#19849) 2019-07-18 15:21:24 +03:00
transaction.go core, txpool: less allocations when handling transactions (#21232) 2020-07-01 19:35:26 +02:00