-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension causes high cpu load #172
Comments
Hey webextensions! Thanks for the detailed bug report! Do you know if running I still agree that there is value in a setting to not blame files that are too large but its very difficult to know how character count, line count, number of commits the file is part of, or number of commits in general influence the resource requirements. |
@Sertion
It seems that large file + longer history both are playing certain parts. For a particular
For another use case where the file contains more than 100,000 lines and part of over 1000 commits, the CPU usage never comes down. Probably a way to configure excluding some specific files by name/glob would also be a decent workaround. PS: GitLens seems to work fine even for the file with 100,000 lines as well (might take a few seconds to effectively load/render, but not too much considering the scale). |
I've spent some time trying to figure this out and have made a pre-release version with a few changes. It would mean a lot if you could try it out and report back if it solved the issue! It would also be helpful to know what state (the |
Thank you for the update. The I tried out the pre-release version, but it didn't seem to help much. It is still working intermittently only for the file with 20000+ lines (out of 10 attempts, around 7 times it did not load and CPU usage stayed 100% for a |
Thank you for your help but I have to admit that I'm stumped. I've spent a few hours trying to reproduce the issue with this quite large file (25764 lines, 1678 commits) and have not been able to do so. I've made another pre-release version with some very minor changes from the last but I am unsure if it will solve anything. |
Thank you for trying further. While I am yet to try the next version of pre-release, I attempted to establish reproducibility further. I was also unable to reproduce it with But, https://github.com/facebook/create-react-app/blob/main/package-lock.json seems to be failing to work for my machine 3 to 6 times out of 10 attempts. It has more than 50k lines of contents. |
@Sertion |
The pre-release below adds |
@Sertion Marking closed 👍 |
Environment:
Steps to reproduce:
Git Blame
extensionpackage-lock.json
). In my case, the file has been part of more 300 commits ($ git rev-list --count HEAD -- package-lock.json
), not sure if that is also relevant for this issue.htop
htop
, it can be observed initially agit blame
operation runs for a few seconds (eg: between 2 to 7 seconds) and after that,code
consumes 100% CPU and that number never comes down.Suggested solution:
In case it is tough to solve the issue due to the file size/history being too large, kindly consider providing manual and/or automatic turn off feature for this extension based on the file name and/or content length.
Similar issues:
The text was updated successfully, but these errors were encountered: