Skip to content

reduce overhead of performing repository indicator updates #5312

Closed

Description

@shiftkey

#5310 highlighted that the work to compute the new repository indicators doesn't scale to 100+ repositories. I'd like to review this feature and see if we can address these two goals:

  • avoid running the work concurrently (this background work shouldn't steal CPU time from the app or other tools)
  • run this less frequently (defer the first run until after the app has settled, and run it less frequently in the background)

Activity

  1. added this to the 1.3.x milestone on Aug 1, 2018
  2. modified the milestones: 1.3.x, 1.3.3 on Aug 1, 2018
  3. shiftkey commented on Aug 1, 2018

    @shiftkey
    MemberAuthor

    @iAmWillShepherd and I talked about this a bit today, and it'd be nice to identify scenarios that we know we don't need to fetch here. #1252 came up because an API request is much cheaper than invoking Git to learn that it's up to date.

  4. shiftkey commented on Aug 3, 2018

    @shiftkey
    MemberAuthor

    Just realised there was a reason why we ordered the background work to be done fetch first, then loadStatus and #5297 might mean that things are out of sync.

    loadStatus also gets the ahead/behind information for the current branch for free, and fetch doesn't surface any information, so doing this in the wrong order now means you won't immediately see the ahead/behind details for your current branch.

    I'd like to get a fix for this into 1.3.3 while we're in here refining things. I still like prioritizing status first, maybe there's a way to refresh the ahead/behind details inside GitStore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions