plugeth/common/math
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
..
big_test.go accounts/abi: move U256Bytes to common/math (#21020) 2020-05-04 14:09:14 +02:00
big.go accounts/abi: move U256Bytes to common/math (#21020) 2020-05-04 14:09:14 +02:00
integer_test.go common/math: add HexOrDecimal64, HexOrDecimal256 2017-03-23 15:58:42 +01:00
integer.go core, txpool: less allocations when handling transactions (#21232) 2020-07-01 19:35:26 +02:00