Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: warm transactions in parallel #13759

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Jan 9, 2025

WIP for spawning tx prewarm threads on a dedicated threadpool, similar to the state root task threadpool

Currently blocked, we need to be able to split an existing block into many execution inputs

ref #13713

@Rjected Rjected added C-enhancement New feature or request C-perf A change motivated by improving speed, memory usage or disk footprint A-execution Related to the Execution and EVM labels Jan 9, 2025
Comment on lines +2293 to +2294
caches.clone(),
cache_metrics.clone(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the cache state shared on clone?

);

// TODO: move this logic somewhere better?
for tx in block.body().transactions() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could wrap the entire thing in pool.scope(|s| ) to avoid cloning but then it would block at scope end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-execution Related to the Execution and EVM C-enhancement New feature or request C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants