erigon-pulse/eth/gasprice
hexoscott 475fa08fdf
eth_gasPrice performance tweaks (#6016)
Code news up an oracle for every call so existing cache checks always
came back as 0. Moved cache up a layer and pass in via the new
`gasprice.Cache` interface. Looked at putting the oracle instance onto
the ethApi itself to re-use it that way, but the backend transaction
made it a little hard work as we can't re-use that. This seemed cleaner
but happy to take feedback.

Locally takes me from ±2.5k rps to ±43k rps so quite a difference there.
(k6 with 1000 virtual users)
2022-11-10 15:36:04 +00:00
..
feehistory_test.go eth_gasPrice performance tweaks (#6016) 2022-11-10 15:36:04 +00:00
feehistory.go Aggregator22.Unwind() (#5039) 2022-08-13 18:51:25 +07:00
gasprice_test.go eth_gasPrice performance tweaks (#6016) 2022-11-10 15:36:04 +00:00
gasprice.go eth_gasPrice performance tweaks (#6016) 2022-11-10 15:36:04 +00:00