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

Replace the quadradic duplicate check logic with a linear version #72

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

Stebalien
Copy link
Member

It's ~2% slower with 10 hashes and ~2% faster with 100 hashes (with very noisy benchmarks). But the important part is that the runtime should scale linearly with the number of inputs. E.g., this version is 2.5x faster for 1000 signatures.

fixes #68

@Stebalien
Copy link
Member Author

Based on #67.

@Stebalien Stebalien changed the base branch from steb/remove-atomic to master October 20, 2023 19:16
It's ~2% slower with 10 hashes and ~2% faster with 100 hashes (with very
noisy benchmarks). But the important part is that the runtime should
scale linearly with the number of inputs. E.g., this version is 2.5x
faster for 1000 signatures.

fixes #68
@Stebalien Stebalien merged commit 89b6656 into master Oct 20, 2023
@Stebalien Stebalien deleted the steb/linear-dedup branch October 20, 2023 19:17
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.

Quadratic duplicate message check
2 participants