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

Use rayon when generating welcome message #9

Merged
merged 1 commit into from Nov 7, 2023
Merged

Use rayon when generating welcome message #9

merged 1 commit into from Nov 7, 2023

Conversation

mulmarta
Copy link
Contributor

@mulmarta mulmarta commented Nov 7, 2023

Description of changes:

  • Group secrets are encrypted in parallel.
  • The group_add benchmark doesn't encrypt the tree in the welcome message, which is a more common use case.
  • The group_add benchmark is added to CI.

Testing:

Run cargo bench --features benchmark_util --bench group_add locally on an M1 MAC. For 1000 adds the result is

  • main : 419.84 ms
  • after this PR but encrypting the tree : 174.00 ms (= 42% of 419.84ms)
  • after this PR : 155.88ms

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

@mulmarta mulmarta requested a review from a team as a code owner November 7, 2023 11:07
stefunctional
stefunctional previously approved these changes Nov 7, 2023
tomleavy
tomleavy previously approved these changes Nov 7, 2023
@tomleavy tomleavy merged commit 144c7c6 into main Nov 7, 2023
21 checks passed
@tomleavy tomleavy deleted the rayon branch November 7, 2023 17:37
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.

None yet

3 participants