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

Add more efficient Int32 Shuffling #168

Merged
merged 11 commits into from
Mar 18, 2024
Merged

Add more efficient Int32 Shuffling #168

merged 11 commits into from
Mar 18, 2024

Conversation

stefan-aws
Copy link
Collaborator

@stefan-aws stefan-aws commented Mar 12, 2024

Replaces the previous shuffle method with a version that operates on int32 instead of int in Dafny, that is, int instead of BigInteger in Java. Tests have shown that this leads to a speed-up as it avoids previously present conversions between BigInteger and int. The new method lifts a newly required external method UniformSample32, which operates on int32 (in Dafny). All other methods (that is, samplers) keep lifting UniformPowerOfTwoSample, which operates on int (in Dafny).

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@stefan-aws stefan-aws marked this pull request as ready for review March 12, 2024 18:41
@stefan-aws stefan-aws changed the title Efficient shuffling Add more efficient Int32 Shuffling Mar 12, 2024
@stefan-aws stefan-aws marked this pull request as draft March 13, 2024 11:42
@stefan-aws stefan-aws marked this pull request as ready for review March 13, 2024 12:43
@jtristan jtristan merged commit 28f5169 into main Mar 18, 2024
7 checks passed
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