-
Notifications
You must be signed in to change notification settings - Fork 642
Firestore: Improve efficiency of memory persistence when processing a large number of writes #6233
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
…e efficient erasing of first element
Release note changesThe following release notes were modified. Please ensure they look correct. Release Notesfirebase-firestore### {{firestore}} version 25.1.1 {: #firestore_v25-1-1}
* {{changed}} Improve efficiency of memory persistence when processing a large number of writes. GitHub [#6233](//github.com/firebase/firebase-android-sdk/issues/6233){: .external}
#### {{firestore}} Kotlin extensions version 25.1.1 {: #firestore-ktx_v25-1-1}
The Kotlin extensions library transitively includes the updated
`firebase-firestore` library. The Kotlin extensions library has no additional
updates. |
Coverage Report 1Affected ProductsTest Logs |
Unit Test Results 186 files + 152 186 suites +152 4m 47s ⏱️ + 3m 49s Results for commit b9784b9. ± Comparison against base commit 2eb7cd7. This pull request removes 188 and adds 1234 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Notes
Startup Times
|
Closing PR as this work has been shelved and tracked by b/365092047 |
Replace
ArrayList
withArrayDeque
so that erasing the first element does not incur O(n) cost, as when erasing the entire ArrayList this inefficiency results in O(n^2) cost. Googlers see b/364354267 and cl/671065694 for details.Ported from firebase/firebase-ios-sdk#13572