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

Parallelize transaction verification in runtime #12742

Open
miloserdow opened this issue Jan 15, 2025 · 0 comments
Open

Parallelize transaction verification in runtime #12742

miloserdow opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
A-transaction-runtime Area: transaction runtime (transaction and receipts processing, state transition, etc) B-L4 Bootcamp: (“Feature”) more context, multi-part C-enhancement Category: An issue proposing an enhancement or a PR with one. T-contract-runtime Team: issues relevant to the contract runtime team

Comments

@miloserdow
Copy link
Member

Description

Currently, verify_and_charge is responsible for transaction verification using state from tries. We can improve throughput by running this verification step in parallel.

It only need read-only access to those tries, and changes can be applied after joining the threads.

A potential solution would be to "freeze" the memtrie, construct Arc<FrozenArena>, and then "unfreeze" the trie after use.

@miloserdow miloserdow added A-transaction-runtime Area: transaction runtime (transaction and receipts processing, state transition, etc) B-L4 Bootcamp: (“Feature”) more context, multi-part C-enhancement Category: An issue proposing an enhancement or a PR with one. T-contract-runtime Team: issues relevant to the contract runtime team labels Jan 15, 2025
@miloserdow miloserdow self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-transaction-runtime Area: transaction runtime (transaction and receipts processing, state transition, etc) B-L4 Bootcamp: (“Feature”) more context, multi-part C-enhancement Category: An issue proposing an enhancement or a PR with one. T-contract-runtime Team: issues relevant to the contract runtime team
Projects
None yet
Development

No branches or pull requests

1 participant