-
Notifications
You must be signed in to change notification settings - Fork 50
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
[PM-6107] Use rayon to multithread encryption/decryption #215
Conversation
New Issues
Fixed Issues
|
Done some more benchmarking, both running the native binary, WASM, and the iOS emulator, and with two different types of data:
On all the benchmarks both data types performed identically, which tells us that there is no overhead when nesting parallel iterator calls. The results for the different targets are as follows: NATIVE: WASM: iOS: This is run on a M2Pro Mac with 8 performance cores and 4 efficiency cores. |
3e3be02
to
e515bc5
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #215 +/- ##
==========================================
- Coverage 57.76% 57.72% -0.05%
==========================================
Files 168 168
Lines 9912 9920 +8
==========================================
Hits 5726 5726
- Misses 4186 4194 +8 ☔ View full report in Codecov by Sentry. |
Type of change
Objective
Use rayon to multithread the encryption and decryption of ciphers. Note that this will have no benefit for WASM, as in that case it falls back to a single thread model.
In my Mac I get 8-9x speedups when decrypting a big number of EncStrings.