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

Amortize bloom filter reset at end of txn #1303

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

Nashtare
Copy link
Collaborator

We currently zeroize one byte of the bloom filter at a time.
This improves the reset by proceeding by chunks of 32 bytes and calling MSTORE_32BYTES with value 0.

Saves around 2.2k CPU cycles / 8.8k Memory rows.

@Nashtare Nashtare requested a review from wborgeaud October 21, 2023 18:58
@Nashtare Nashtare self-assigned this Oct 21, 2023
Copy link
Contributor

@wborgeaud wborgeaud left a comment

Choose a reason for hiding this comment

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

Nice 👍

@Nashtare Nashtare merged commit 9607a41 into 0xPolygonZero:main Oct 23, 2023
2 checks passed
@Nashtare Nashtare deleted the amortize_receipt_reset branch October 23, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants