Skip to content

Conversation

@vladjdk
Copy link
Member

@vladjdk vladjdk commented Sep 12, 2025

Reduces the amount of times CreateQueryContext is called by caching the context once every block and reusing it.

closes: #604

@vladjdk vladjdk changed the title Vlad/mempool latest context improvement perf: reduce number of query context calls Sep 15, 2025
@vladjdk vladjdk marked this pull request as ready for review September 15, 2025 20:13
@vladjdk vladjdk requested review from a team as code owners September 15, 2025 20:13
@aljo242
Copy link
Contributor

aljo242 commented Sep 15, 2025

@vladjdk can we add a changelog entry for this?

@vladjdk vladjdk enabled auto-merge September 15, 2025 20:58
@vladjdk vladjdk added this pull request to the merge queue Sep 15, 2025
Merged via the queue into main with commit 5ff2ec7 Sep 15, 2025
20 checks passed
@vladjdk vladjdk deleted the vlad/mempool-latest-context-improvement branch September 15, 2025 21:07
zsystm pushed a commit to zsystm/evm that referenced this pull request Nov 2, 2025
* update blockchain context once per block

* evmd tests pass but this is some pointer madness

* no more pointer madness

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce number of query context calls in mempool

4 participants