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

More efficient receipt cleaning #922

Open
d4hines opened this issue Oct 25, 2022 · 0 comments
Open

More efficient receipt cleaning #922

d4hines opened this issue Oct 25, 2022 · 0 comments

Comments

@d4hines
Copy link
Contributor

d4hines commented Oct 25, 2022

When a validator applies a block, he needs to remove the applied operations from his mempool. Currently the mempool is a standard OCaml map, so removing the applied operations is O(n*log m) where n is the operations in a block and m is the size of the mempool.

We should switch to a more efficient data structure.

@d4hines d4hines modified the milestone: EOY Oct 25, 2022
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