Commit graph

4 commits

Author SHA1 Message Date
Sina Mahmoodi
5c4a89562d core, eth: move jumpdest cache to BlockChain
Replaces the process-global LRU with a chain-owned, byte-bounded
SizeConstrainedCache (128MB) shared between block processor and
prefetcher. Threaded through Process/Prefetch as an optional argument;
RPC, tracing, and stateless callers pass nil and the EVM falls back to
its per-instance map. Adds chain/cache/jumpdest/{hit,miss} meters.
2026-05-07 19:46:51 +00:00
Sina Mahmoodi
3f49929091 Add cap of 16k contracts 2026-04-30 08:47:14 +00:00
Sina Mahmoodi
faef2454fc core/vm: global cache for jumpdest bitmaps 2026-04-29 16:44:09 +02:00
lmittmann
17d65e9451
core/vm: add configurable jumpdest analysis cache (#32143)
This adds a method on vm.EVM to set the jumpdest cache implementation.
It can be used to maintain an analysis cache across VM invocations, to improve
performance by skipping the analysis for already known contracts.

---------

Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-08-01 13:57:38 +02:00