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

Closed
hai-rise opened this issue Sep 4, 2024 · 1 comment
Closed

Share more revm data across threads #319

hai-rise opened this issue Sep 4, 2024 · 1 comment

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,
);

@hai-rise
Copy link
Contributor Author

Won't need this anymore once we remove revm dependency with #382.

@hai-rise hai-rise closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
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