becomes unresponsive after a few thousands files added to working directory
Created originally on Bitbucket by matteosistisette (matteo sisti sette)
What I did:
- I had a repository open in THG
- I ran an npm command resulting in a handful of files in the repo being updated and a few thousands being added
- I went back to THG and hit f5
Expected: might notice a small lag or loss of responsiveness for a fraction of a second. If you were to add millions of files, you might expect it to start to be noticeable. Actually, the UI should NEVER, EVER stop responding in an uncontrolled way. There might be an update time during which an animated spinning icon should show up, and given parts of the interface should become greyed out if they can't be used, and the key parts (such as menus, the window's close button and the like) should still remain 100% responsive while stuff is being done in the background.
Observed: The panel on the bottom left which lists modified and new files became unusable. The scrollbar wouldn't respond, THG was using 100% CPU and kept using 100% CPU for a long time. Scrolling the list of files was impossible.
So I closed THG and relanched it. Upon opening the same repository, it was unresponsive again.
I had to wait more than a minute for CPU consumption to go down to normal, and then the UI was usable. Even then, at the first attempt to scroll down, or even select a file already within the scrolling view, it stopped responding again for a couple of seconds, then after that all was working fine.