Closed stefanhaller closed 4 months ago
Coverage variation | Diff coverage |
---|---|
Report missing for 51eb6d7c7d74a90387abac2033ab7af428492ad9[^1] | :white_check_mark: 100.00% |
Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more [^1]: Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
When branches are sorted by recency we have this logic that first loads the branches so that they can be rendered quickly; in parallel, it starts loading the reflog in the background, and when that's done, it loads the branches again so that they get their recency values. This means that branches are loaded twice at startup.
We don't need this logic when branches are not sorted by recency, so we can simply load branches and reflog in parallel like everything else.
This shouldn't change any user observable behavior, it just avoids doing unnecessary work at startup.