-
Notifications
You must be signed in to change notification settings - Fork 86
[PM-28339] Move FetchedResultsSubscription's initial fetch into background #2193
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
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @matt-livefront's task in 2m 10s —— View job Code Review Complete
Review Summary: Changes look good overall. The PR successfully moves the blocking The bitwarden-code-reviewer agent has posted detailed inline comments and a summary. Please review those for specific feedback. |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2193 +/- ##
==========================================
- Coverage 85.50% 84.23% -1.27%
==========================================
Files 1740 1978 +238
Lines 147301 162364 +15063
==========================================
+ Hits 125943 136771 +10828
- Misses 21358 25593 +4235 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BitwardenKit/Core/Platform/Utilities/FetchedResultsPublisher.swift
Outdated
Show resolved
Hide resolved
bf82aaa to
eb7bfc6
Compare

🎟️ Tracking
PM-28339
📔 Objective
When
FetchedResultsSubscriptionis initialized, it performs an initial fetch of the fetch request. If the subscription is created on the main thread, which is often the case when subscribing to data in a processor, this occurs on the main thread. The fetch itself occurs on a background context (#2165), butperformFetch()is synchronous and waits for the results. After adding the serial queue in the previous PR, this is an easy thing to also move into the background.Overall Summary:
Run Details
Baseline:
After Change
This was a result of profiling 5 runs before and after on startup on an iPhone 13 Pro.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes