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

Share more revm data across threads #319

Open
hai-rise opened this issue Sep 4, 2024 · 0 comments
Open

Share more revm data across threads #319

hai-rise opened this issue Sep 4, 2024 · 0 comments

Comments

@hai-rise
Copy link
Contributor

hai-rise commented Sep 4, 2024

As building a new Evm each execution is very expensive.

pevm/src/vm.rs

Lines 554 to 563 in d4d2bd0

// TODO: Share as much [Evm], [Context], [Handler], etc. among threads as possible
// as creating them is very expensive.
let mut evm = build_evm(
&mut db,
self.chain,
self.spec_id,
self.block_env.clone(),
Some(tx.clone()),
false,
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant