-
Notifications
You must be signed in to change notification settings - Fork 19
feat: batch decryption - WPB-17614 #3078
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
Conversation
Co-authored-by: Christoph Aldrian <christoph.aldrian@wire.com> Co-authored-by: Dmitry Simkin <dzmitry.simkin.ext@wire.com> Co-authored-by: Christoph Aldrian <caldrian@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sam Wyndham <samwyndham@users.noreply.github.com> Co-authored-by: François Benaiteau <netbe@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no merge conflicts
Test Results 6 files 655 suites 8m 12s ⏱️ For more details on these failures, see this check. Results for commit 7bd5c78. ♻️ This comment has been updated with latest results. |
Datadog ReportBranch report: ✅ 0 Failed, 5329 Passed, 0 Skipped, 4m 24.71s Total Time |
This PR was automatically cherry-picked based on the following PR:
Original PR description:
Issue
Decrypt events in batches when pulling events.
This accomplished by adding an optional
context
argument to all decryption functions. If omitted the decryption methods behave as before by opening a separate transaction for each single operation, but if it's provided the decryption operation will happen on an existing transaction context.Currently only the
PullPendingUpdateEventsSync
use thecontext
argument. We would also need to add batch decryption to the async notifications code path once it's available.Testing
App is still processing events without errors.
Non-scientific benchmark
Running on a simulator I've collected roughly 500 text messages and measured how long it took for
PullPendingUpdateEventsSync
to decrypt them all.using batch decryption
without batch decryption
Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: