Skip to content

Github Desktop is very slow #7108

Closed
Closed

Description

@FireCulex

Description

Version

  • GitHub Desktop:
  • Operating system:

Steps to Reproduce

Expected Behavior

Actual Behavior

Additional Information

Logs

GitHubDesktop_2019-03-17_18-59-10

It can easily take over a minute to fetch and push something as simple as changing 1 byte.
Whats with the massive idle time?

Activity

  1. added
    more-info-needed
    on Mar 18, 2019
  2. tierninho commented on Mar 18, 2019

    @tierninho
    Contributor

    @FireCulex In order to help resolve your issue, please fill out the template above.

    We need the information as it may be relevant in determining the underlying problem. Thanks for meeting us halfway 😄

  3. tierninho commented on Mar 20, 2019

    @tierninho
    Contributor

    @FireCulex As we have not heard back from you on this issue, we are closing it for now. Should you have any more details or questions, please reach out and we will be happy to help. Thank you.

  4. FireCulex commented on Mar 21, 2019

    @FireCulex
    Author

    I don't check email everyday or use github everyday.

    Github Desktop 1.6.5 Windows 10
    Change 1 byte, Fetch, Push, or even Pull
    Expected: to be more responsive
    Actual: long delay, performance shows mostly idle.

    I'm quite adept at hacking but troubleshooting information is either outdated or scarce and I'm not super familiar with the ins and outs of the application.

  5. FireCulex commented on Mar 21, 2019

    @FireCulex
    Author

    2019-03-21.desktop.production.log
    just loading the program has to wait on refreshing the repository. very slow.

  6. tierninho commented on Mar 21, 2019

    @tierninho
    Contributor

    @FireCulex Thanks for the update.

    Unfortunately nothing stands out in your logs. Were do doing anything in Desktop in particular or is it slow all around? How is the performance of other applications running at the same time?

    I did see the mention of ~20MB being processed in your pic. Not a huge amount but perhaps a clue. 🤷‍♂️The Network tab in the dev tools may serve up some additional context as well.

  7. FireCulex commented on Mar 21, 2019

    @FireCulex
    Author

    The application itself isn't unresponsive and the swirling icon works just fine. I can commit to master, then it takes 5s-10s then push origin will show up, then I press it and it swirls and says Hang on... Then it fetches, then it refreshes repository Individually the delay isn't so bad, its just at each step it accumulates.
    I couldn't tell you what the ~20MB is about since each repository is under 300k. Even on a revert there's a delay and your left wondering if anything is happening.

    notepad++_2019-03-21_14-59-48

    profiling does max the cpu.
    firefox_2019-03-21_15-24-22

  8. tierninho commented on Mar 21, 2019

    @tierninho
    Contributor

    cc @desktop/support Any thoughts on this one?

  9. steveward commented on Mar 22, 2019

    @steveward
    Contributor

    I've actually got a user I'm corresponding with via email who is hitting similar perf issues. Unfortunately these types of issues can be difficult to reproduce and diagnose. I do see some high fetch times in the log:

    2019-03-21T13:26:00.073Z - info: [ui] Executing getRemotes: git remote -v (took 31.581s)
    2019-03-21T13:26:00.428Z - info: [ui] Background fetch for 3 repositories took 185.113sec
    

    That fetch is taking almost 3 minutes for three repositories. I have seven repositories and a fetch takes around 2-5 seconds on average.

    @FireCulex Do any of these repositories have a large number of branches? Also, how is performance for you when working with this repository from the command line? If you have not tested that out could you try running git fetch --progress --prune origin to see if you are able to replicate these performance issues on the command.

  10. lYesterdaYl commented on Mar 22, 2019

    @lYesterdaYl

    I also just installed this....My pc got reset, so I have to reinstalled this. The version I used earlier didn't have this lag issue at all, but this version is very slow, viewing commit, push, pull etc.

  11. tierninho commented on Mar 22, 2019

    @tierninho
    Contributor

    @lYesterdaYl Please up your comment with some more detail, like OS, desktop version, steps if relevant, and any other info you can share that might help us find the root of the issue. As Steve mentioned, these types of issues can be difficult to reproduce and diagnose. Thanks in advance.

  12. lYesterdaYl commented on Mar 22, 2019

    @lYesterdaYl

    @tierninho Hi, I am using Win 10. The system is up to date, but this also happened on my other pc which is also Win 10 but not up to date. I used choco command in CMD to installed version 1.5 later, and the app doesn't have any lag anymore. So, I believe the lagging issue is only happening the latest version.

  13. FireCulex commented on Mar 26, 2019

    @FireCulex
    Author

    @steveward git clone from the cmdline is instantaneous as is the other git commands.

    $ git --version
    git version 2.17.1
    
    $ time git fetch 
    
    real	0m0.450s
    user	0m0.025s
    sys	0m0.026s
    
    
    >git --version
    git version 2.19.2.windows.1
    
    >git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin
    
    >
    

    There's no output but it takes maybe a second to complete.

    versus Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 65.745s)

    again git var GIT_AUTHOR_IDENT is instant, not Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 19.460s)

    and git remote -v is instant, not Executing getRemotes: git remote -v (took 21.580s)

    These repositories only have a few files, very small, and only 1 branch, the main one.

    github desktop installs itself in appdata/local, thats strange.

  14. 2 remaining items

  15. a-tambov commented on Jul 30, 2019

    @a-tambov

    Hi, I've been experiencing this issue for many months. I always update immediately to the latest version, currently on GitHub Desktop 2.1.0. I'm on Windows 10 with latest updates as well.

    Here is an extract from the logs:

    2019-07-29T23:47:45.566Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: XXXXXXXXXXXXXXXXXXXXXX - XXXXXXXX (has token)
    2019-07-29T23:48:33.483Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin feature/XXXXXXXX:feature/XXXXXXXX --progress (took 47.863s)
    2019-07-29T23:49:18.888Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 45.350s)
    

    push and fetch take 47 and 45 seconds, when I use command line on the same repository it is only 1-3 seconds.

    I work with 5 repositories in GitHub Desktop, it doesn't depend on repository, every repository fetch, pull and push always slow from GitHub Desktop and quick from command line.

    Happy to answer further questions if there any. Cheers.

  16. tierninho commented on Jul 30, 2019

    @tierninho
    Contributor

    @a-tambov Thanks for sharing.

    Is there any other relevant information about your repositories or setup? Is there a large amount of data in your repositories? Maybe you are using a slow internet connection? Are you using a VPN or proxy server?

    Any repo you want to share so we can clone? Unfortunately, these types of issues can be difficult to reproduce and diagnose.

  17. a-tambov commented on Jul 31, 2019

    @a-tambov

    Main repository is quite big, monthly stats is like this:
    17 authors have pushed 199 commits to XXXXXXX and 225 commits to all branches. On XXXXXXX, 426 files have changed and there have been 14,208 additions and 3,375 deletions.

    I can't reveal any specific information about the repos, but it seems that the issue doesn't depend on the size of them. On smaller repos issue still the same, it takes long time, about a minute to do pull, push, fetch from the UI and seconds to do the same from command line, so I guess it has nothing to do with the speed of the internet connection.

    Typical operation from command line like this, was done in seconds. Same action from the GitHub Desktop would have taken about a minute, this issue very consistent.

    $ git push --set-upstream XXXXXXX feature/XXXXXXXXXXXX
    Counting objects: 11, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (11/11), done.
    Writing objects: 100% (11/11), 1.82 KiB | 18.00 KiB/s, done.
    Total 11 (delta 9), reused 0 (delta 0)
    remote: Resolving deltas: 100% (9/9), completed with 9 local objects.
    remote:
    remote: Create a pull request for 'feature/XXXXXXXXXXXX' on GitHub by visiting:
    remote:      https://github.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    remote:
    To https://github.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     * [new branch]          feature/XXXXXXXXXXXX -> feature/XXXXXXXXXXXX
    Branch 'feature/XXXXXXXXXXXX' set up to track remote branch 'feature/XXXXXXXXXXXX' from 'XXXXXXX'.
    
  18. a-tambov commented on Jul 31, 2019

    @a-tambov

    @tierninho I hope this will help, cheers.

  19. tierninho commented on Jul 31, 2019

    @tierninho
    Contributor

    Thanks for sharing. So far nothing stands out and it will be hard to pinpoint the exact reasoning. Gonna leave this issue open in case more data surfaces from you or other users.

  20. admarko commented on Oct 29, 2019

    @admarko

    Not sure what happened but all of a sudden in the past 7 days, GitHub Desktop became super slow. Similar issues to other people, commit is fine but push origin can take over a minute on small commits. Using a Mac on Mojave, have the latest version of Github Desktop

  21. DarinBeard commented on Dec 4, 2019

    @DarinBeard
  22. outofambit commented on Dec 16, 2019

    @outofambit
    Contributor

    I appreciate the intent behind this issue and the discussion, but I think this is much too broad to get a productive investigation or diagnosis. Let's open new issues for specific performance problems going forward, thank you!

  23. a-tambov commented on Dec 16, 2019

    @a-tambov

    I confirm the issue has gone. An update (either 2.2.1 or 2.2.2) has fixed it.

  24. timeshift-ted commented on Jul 29, 2020

    @timeshift-ted

    I have a similar issue. For 10 to 20 seconds program is completely unresponsive for most actions (like starting up, clicking on list of repositories, trying to select the text box to type commit notes, pretty much anything). Can not even select from dropdown menu. Was working great until a few weeks ago and then got extremely slow. On version 2.5.3. Going to switch to GitKraken or another client as it's become basically unusable. Will try again the next time they publish an update to see if issue is fixed. Command line git is fast as usual.

  25. steveward commented on Jul 29, 2020

    @steveward
    Contributor

    @timeshift-ted are you on a Windows machine? Are you running any antivirus/security software that could be causing this?

  26. timeshift-ted commented on Jul 29, 2020

    @timeshift-ted

    Yes, on Windows. No antivirus/security software that I know of. The software had been running great until a week or two ago and then suddenly because extremely slow. I assume this was due to an update. Windows Server 2019 Datacenter running on AWS.

  27. dxc-jbeck commented on Feb 2, 2021

    @dxc-jbeck

    I had this problem this morning. I uninstalled GitHub Desktop. Then I searched from the root of c:\ for "GitHub Desktop" and deleted all the matching folders. Then I re-installed and it's working fast again.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-neededperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions