Ensure we only check one repo's stash size at a time from refreshRepository #7584
Labels
epic:stashing
Tracking label for work related to the stashing flow
metrics
measuring user behavior for better decisions
performance
Relating to things affecting performance
(from investigation by @niik)
(from me, @outofambit)
This
desktop/app/src/lib/stores/app-store.ts
Line 2116 in 70f9bea
await
-ed).The tradeoff here is that if we
await
that call, the results of_refreshRepository
, we block other sequential operations that come afterwards until that check is finished. (_refreshRepository
isawait
-ed in a few key places, like checkout, commit, and pull). However, since we limit ourselves to one metric update check per 24 hours, this will probably not result in a noticeable performance difference.The text was updated successfully, but these errors were encountered: