erigon-pulse/core
Marius van der Wijden 84f3ed1b88 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>
# Conflicts:
#	common/math/integer.go
#	core/tx_list.go
#	core/tx_pool.go
#	core/types/transaction.go
2020-08-07 12:25:38 +02:00
..
asm core/asm: allow numbers in labels (#20362) 2019-12-03 13:55:30 +01:00
bloombits Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
forkid Make cmd/tester initiate staged sync, remove some pools and caches (#746) 2020-07-15 07:15:48 +01:00
rawdb remove ReadLastBlockNumber method = read execution stage status instead (#780) 2020-07-24 14:46:49 +01:00
state cmd/evm: add state transition tool for testing (#20958) 2020-08-07 11:38:07 +02:00
types core, txpool: less allocations when handling transactions (#21232) 2020-08-07 12:25:38 +02:00
vm cmd/evm: add state transition tool for testing (#20958) 2020-08-07 11:38:07 +02:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
block_validator_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
block_validator.go GenerateChain without using TrieDbState (#726) 2020-07-09 07:15:28 +01:00
blockchain_insert.go added insertBodies (#695) 2020-06-29 17:26:33 +01:00
blockchain_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
blockchain.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
blocks.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
chain_indexer.go core: add check in AddChildIndexer to avoid double lock (#20982) 2020-05-20 15:26:22 +03:00
chain_makers_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
chain_makers.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
dao_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
error.go all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
events.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2020-01-30 13:36:30 +02:00
evm.go RpcDeamon eth_call and eth_estimateGas (#817) 2020-07-29 17:21:34 +01:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis_account.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_genesis.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
generate_index_test.go Use datadir for temp files when generating indexes 2020-08-02 12:32:41 +02:00
generate_index.go Use datadir for temp files when generating indexes 2020-08-02 12:32:41 +02:00
genesis_alloc.go cmd, core, params: inital support for yolo-v1 testnet (#21154) 2020-06-15 19:38:13 +03:00
genesis_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
genesis.go Remove incarnation inversion (#755) 2020-07-17 15:18:31 +01:00
headerchain.go wait for verify_headers method (#793) 2020-07-27 19:26:24 +07:00
mkalloc.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
pruner_test.go close db in tests (#669) 2020-06-16 12:05:40 +07:00
pruner.go Migrations: use stage name as db key (#868) 2020-08-05 17:13:35 +07:00
rlp_test.go Speed up GenerateChain by using intermediate hashes (#736) 2020-07-10 22:37:34 +01:00
skip_analysis.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_prefetcher.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_processor.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_transition.go [GC] uint256 rather than big.Int in Transaction (#614) 2020-06-04 08:43:08 +01:00
tx_cacher.go Grpc-based remoteDb (#788) 2020-07-27 19:15:48 +07:00
tx_journal.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
tx_list_test.go core, txpool: less allocations when handling transactions (#21232) 2020-08-07 12:25:38 +02:00
tx_list.go core, txpool: less allocations when handling transactions (#21232) 2020-08-07 12:25:38 +02:00
tx_noncer.go Remove Copy from IntraBlockState and use references instead of copies in other places. 2019-11-07 13:32:20 +01:00
tx_pool_test.go core, txpool: less allocations when handling transactions (#21232) 2020-08-07 12:25:38 +02:00
tx_pool.go core, txpool: less allocations when handling transactions (#21232) 2020-08-07 12:25:38 +02:00
types.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00