• Marius van der Wijden's avatar
    core, txpool: less allocations when handling transactions (#21232) · af5c97ae
    Marius van der Wijden authored
    * 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: 's avatarMartin Holst Swende <martin@swende.se>
    af5c97ae
tx_list_test.go 2.29 KB