Closed samalws-tob closed 2 months ago
Ran benchmark, this removes ExtractContractMetadata from the flamegraph, just about doubles gas/second, and increases calls/second by about 50%
Need to clean this up a lot, I think we can remove the cachedGethCodeHash entirely and keep only one of the gethCodeHashToCodeHash's but I'm not sure which of them to keep, should be easy enough to figure out
Also I need to check the assumption that geth's codehash value is different during init vs during runtime. If it's not true we need to change gethCodeHashToCodeHash to a map[bool]map[common.Hash]*common.Hash
. Might want to do this anyway just to be safe
451