Skip to content

A simple refactor on LocalStore.java #4758

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

Merged
merged 2 commits into from
Mar 13, 2023
Merged

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Mar 8, 2023

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

Add the 'main-merge-ack' label to your PR to confirm merging into the main branch is intended.

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 8, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 44.15% (02b3365) to 44.14% (bdd58a1) by -0.01%.

    FilenameBase (02b3365)Merge (bdd58a1)Diff
    DeleteMutation.java90.48%95.24%+4.76%
    LocalStore.java100.00%99.39%-0.61%
    LruGarbageCollector.java97.20%93.46%-3.74%
    SetMutation.java94.44%97.22%+2.78%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/6GJLjlDUXA.html

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

Unit Test Results

   158 files   -    509     158 suites   - 509   1m 45s ⏱️ - 27m 38s
1 116 tests  - 3 246  1 100 ✔️  - 3 240  16 💤  -   5  0  - 1 
2 232 runs   - 6 021  2 200 ✔️  - 6 010  32 💤  - 10  0  - 1 

Results for commit 6e2cc84. ± Comparison against base commit 02b3365.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 8, 2023

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (02b3365)Merge (bdd58a1)Diff
    aar1.32 MB1.32 MB+68 B (+0.0%)
    apk (release)3.94 MB3.94 MB-68 B (-0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/fuds39UiXp.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 8, 2023

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • fire-fst

    DeviceStatisticsDistributions
    oriole-32
    Percentile02b3365bdd58a1DiffSignificant (?)
    p10347 ±32 μs343 ±47 μs-4.04 μs (-1.2%)NO
    p25375 ±46 μs361 ±64 μs-14.0 μs (-3.7%)NO
    p50422 ±62 μs401 ±104 μs-20.3 μs (-4.8%)NO
    p75515 ±97 μs454 ±142 μs-61.3 μs (-11.9%)NO
    p90607 ±148 μs544 ±195 μs-63.1 μs (-10.4%)NO

    20 test runs in comparison
    CommitTest Runs
    02b3365
    • 2023-03-06_23:25:02.770572_OgSq
    • 2023-03-06_23:25:02.772755_JdKn
    • 2023-03-06_23:25:02.772772_VYaQ
    • 2023-03-06_23:25:02.772779_cNgO
    • 2023-03-06_23:25:02.772784_ObHX
    • 2023-03-06_23:25:02.772790_uABk
    • 2023-03-06_23:25:02.772797_LdCt
    • 2023-03-06_23:25:02.772803_wPto
    • 2023-03-06_23:25:02.772808_xonD
    • 2023-03-06_23:25:02.772814_Ufww
    bdd58a1
    • 2023-03-08_17:32:45.692700_jccb
    • 2023-03-08_17:32:45.700827_jJzO
    • 2023-03-08_17:32:45.701008_DSnc
    • 2023-03-08_17:32:45.701017_goUE
    • 2023-03-08_17:32:45.701258_txMn
    • 2023-03-08_17:32:45.701265_mQOI
    • 2023-03-08_17:32:45.701272_nCUp
    • 2023-03-08_17:32:45.701279_NzJq
    • 2023-03-08_17:32:45.701284_mtcd
    • 2023-03-08_17:32:45.701290_ireN
    redfin-30
    Percentile02b3365bdd58a1DiffSignificant (?)
    p10653 ±29 μs664 ±26 μs+10.7 μs (+1.6%)NO
    p25675 ±35 μs685 ±30 μs+9.72 μs (+1.4%)NO
    p50707 ±46 μs713 ±37 μs+6.67 μs (+0.9%)NO
    p75744 ±55 μs760 ±49 μs+16.3 μs (+2.2%)NO
    p90789 ±76 μs814 ±67 μs+25.1 μs (+3.2%)NO

    20 test runs in comparison
    CommitTest Runs
    02b3365
    • 2023-03-06_23:25:02.770572_OgSq
    • 2023-03-06_23:25:02.772755_JdKn
    • 2023-03-06_23:25:02.772772_VYaQ
    • 2023-03-06_23:25:02.772779_cNgO
    • 2023-03-06_23:25:02.772784_ObHX
    • 2023-03-06_23:25:02.772790_uABk
    • 2023-03-06_23:25:02.772797_LdCt
    • 2023-03-06_23:25:02.772803_wPto
    • 2023-03-06_23:25:02.772808_xonD
    • 2023-03-06_23:25:02.772814_Ufww
    bdd58a1
    • 2023-03-08_17:32:45.692700_jccb
    • 2023-03-08_17:32:45.700827_jJzO
    • 2023-03-08_17:32:45.701008_DSnc
    • 2023-03-08_17:32:45.701017_goUE
    • 2023-03-08_17:32:45.701258_txMn
    • 2023-03-08_17:32:45.701265_mQOI
    • 2023-03-08_17:32:45.701272_nCUp
    • 2023-03-08_17:32:45.701279_NzJq
    • 2023-03-08_17:32:45.701284_mtcd
    • 2023-03-08_17:32:45.701290_ireN
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile02b3365bdd58a1DiffSignificant (?)
    p10193 ±4 ms200 ±17 ms+7.02 ms (+3.6%)NO
    p25200 ±6 ms207 ±20 ms+7.47 ms (+3.7%)NO
    p50208 ±8 ms217 ±25 ms+8.69 ms (+4.2%)NO
    p75220 ±19 ms227 ±29 ms+6.67 ms (+3.0%)NO
    p90230 ±22 ms242 ±32 ms+12.4 ms (+5.4%)NO

    20 test runs in comparison
    CommitTest Runs
    02b3365
    • 2023-03-06_23:25:02.770572_OgSq
    • 2023-03-06_23:25:02.772755_JdKn
    • 2023-03-06_23:25:02.772772_VYaQ
    • 2023-03-06_23:25:02.772779_cNgO
    • 2023-03-06_23:25:02.772784_ObHX
    • 2023-03-06_23:25:02.772790_uABk
    • 2023-03-06_23:25:02.772797_LdCt
    • 2023-03-06_23:25:02.772803_wPto
    • 2023-03-06_23:25:02.772808_xonD
    • 2023-03-06_23:25:02.772814_Ufww
    bdd58a1
    • 2023-03-08_17:32:45.692700_jccb
    • 2023-03-08_17:32:45.700827_jJzO
    • 2023-03-08_17:32:45.701008_DSnc
    • 2023-03-08_17:32:45.701017_goUE
    • 2023-03-08_17:32:45.701258_txMn
    • 2023-03-08_17:32:45.701265_mQOI
    • 2023-03-08_17:32:45.701272_nCUp
    • 2023-03-08_17:32:45.701279_NzJq
    • 2023-03-08_17:32:45.701284_mtcd
    • 2023-03-08_17:32:45.701290_ireN
    redfin-30
    Percentile02b3365bdd58a1DiffSignificant (?)
    p10230 ±6 ms251 ±4 ms+20.8 ms (+9.0%)MAYBE
    p25236 ±6 ms257 ±4 ms+20.6 ms (+8.7%)MAYBE
    p50243 ±7 ms264 ±4 ms+20.8 ms (+8.6%)MAYBE
    p75251 ±7 ms273 ±5 ms+21.5 ms (+8.6%)NO
    p90259 ±6 ms285 ±9 ms+25.9 ms (+10.0%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    02b3365
    • 2023-03-06_23:25:02.770572_OgSq
    • 2023-03-06_23:25:02.772755_JdKn
    • 2023-03-06_23:25:02.772772_VYaQ
    • 2023-03-06_23:25:02.772779_cNgO
    • 2023-03-06_23:25:02.772784_ObHX
    • 2023-03-06_23:25:02.772790_uABk
    • 2023-03-06_23:25:02.772797_LdCt
    • 2023-03-06_23:25:02.772803_wPto
    • 2023-03-06_23:25:02.772808_xonD
    • 2023-03-06_23:25:02.772814_Ufww
    bdd58a1
    • 2023-03-08_17:32:45.692700_jccb
    • 2023-03-08_17:32:45.700827_jJzO
    • 2023-03-08_17:32:45.701008_DSnc
    • 2023-03-08_17:32:45.701017_goUE
    • 2023-03-08_17:32:45.701258_txMn
    • 2023-03-08_17:32:45.701265_mQOI
    • 2023-03-08_17:32:45.701272_nCUp
    • 2023-03-08_17:32:45.701279_NzJq
    • 2023-03-08_17:32:45.701284_mtcd
    • 2023-03-08_17:32:45.701290_ireN

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/8FczBW5jcR/index.html

@tom-andersen tom-andersen assigned wu-hui and unassigned tom-andersen Mar 13, 2023
@wu-hui wu-hui merged commit 8a92291 into master Mar 13, 2023
@wu-hui wu-hui deleted the wuandy/RefactorShouldPersist branch March 13, 2023 20:33
@firebase firebase locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants