framework
framework copied to clipboard
Performance Roadmap
Basis for this issue is the state after #307
- [ ] Explicit dynamic state access #309
- [ ] Replace runtimeMethod wrapper with a non-provable version for sequencing that (1) uses non-provable functions for hashing-intensive operations like toStateTransitionsHash() and (2) returns the results of those to the sequencing services to be reused, compared to them recomputing the same values currently
- [ ] Faster mempool simulation and/or Mempool fast mode (no simulation -> optimistic sequencing with ejection in case of failing hooks - building on #294)
- [ ] Optimistic Parallel execution of runtime and hooks Parallelizes execution and state access as well. State access is a natural await point in runtimes, during that time other runtime executions can start, until they in turn need to pause to fetch some state. Afterwards, collisions can be detected and resolved
- [ ] Bun
- [ ] spawn sub-processes for tracing along with throw-away masks
- [ ] Poseidon2
- [ ] Performance regression tests, add to CI as separate step