-
Notifications
You must be signed in to change notification settings - Fork 498
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
Decreased performance in the last couple months in large modules #1497
Comments
Thanks for this! As mentioned on Twitter, we've been investigating a bunch of performance related issues. Quick question though, in addition to the large file, do you open workspaces with a ton of files? |
@jahands Does turning off CodeLens help? Let us know if it does and by how much. |
Not it does not. I've been using Code a lot for PS the last few days and
everything is still quite slow.
…On Sat, Aug 25, 2018 at 12:55 PM Robert Holt ***@***.***> wrote:
@jahands <https://github.com/jahands> Does turning off CodeLens
<#1174 (comment)>
help? Let us know if it does and by how much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1497 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKOQXUY1z2uTZiAEP_25zfPcGhRHdC55ks5uUY-JgaJpZM4WMcXn>
.
|
@jahands just out of curiosity. Whens the last time you killed all open vscode windows and restarted it? |
It's been a few days, probably a week on that PC actually
…On Wed, Aug 29, 2018, 6:06 PM Tyler James Leonhardt < ***@***.***> wrote:
@jahands <https://github.com/jahands> just out of curiosity. Whens the
last time you killed all open vscode windows and restarted it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1497 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKOQXeVN-QT_qc2YSuNWy5SZwmogMBbVks5uVx5mgaJpZM4WMcXn>
.
|
Does disabling script analysis help: |
Just had a look through the changes over the last few months (https://github.com/PowerShell/PowerShellEditorServices/commits/master) and there's nothing there that I can imagine causing serious performance degradations:
|
I thought maybe it was time to split code out to multiple files so I moved a few classes to a new file. Formatting still took a really long time. But every now and again formatting will happen almost instantly like it used to. But then formatting again a little later is slow. |
@jahands Have you noticed any performance improvement with the latest release? |
@rjmholt I think this was partially what I fixed in PowerShell/PSScriptAnalyzer#1074. Once that makes it into a release we should see a significant performance boost in a lot of scenarios. |
@SeeminglyScience I'm happy to see that PR. @rjmholt The format does go slightly faster, like 20 seconds instead of 50+. But it's still a long way from the <2 seconds it used to take. |
@jahands See the comment above -- so far as we can tell, this particular performance regression occurred when no large changes went into PSES, so we think it was on the PSScriptAnalyzer side. @SeeminglyScience has merged a fix there, so we are now waiting on a release from them to get it downstream. |
@TylerLeonhardt I believe I see this one. Even with codelens off. In the past, I've had the issue even with psscriptanalyzer off, but haven't tried that in a while. I will try that tonight or in the morning. I have this problem even in relatively small modules\repos (maybe 10-20 functions) and in non workspaces and workspaces. For me, I have done tests where I've waited 10+ minutes for intellisense to finally return results. For me though, this problem has been present for well over a year. I was debugging this with @daviwil for a really long time well before he ever went to github. The best I could do was disable codelens, but even then it was still unusable. This could potentially be different issues, but the results have always been the same for me. I really haven't been able to use intellisense for the last couple years. I've thought it could maybe be something in my environment, but after spending months trying to remove things from my modules that I thought might cause problems, still had the same results. I was removing dynamic params, argument completers, unused modules, cleaning up profiles, etc but never did find anything that made it better. |
Note that with PowerShell/PSScriptAnalyzer#1166 we expect another speed boost (twice the speed) in PSSA and we plan to release it to the wild soon (hopefully this month) |
Hey just wanted to let let you all know that VS Code is now working really
well with my large 6k+ LOC files. Autocomplete is fast, and formatting only
takes 4-5 seconds (vs minutes or never finishing.)
Thanks!
…On Tue, Mar 12, 2019 at 4:16 PM Christoph Bergmeister [MVP] < ***@***.***> wrote:
Note that with PowerShell/PSScriptAnalyzer#1166
<PowerShell/PSScriptAnalyzer#1166> we expect
another speed boost (twice the speed) in PSSA and we plan to release it to
the wild soon (hopefully this month)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1497 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKOQXSslhXIxDmQ8wXS2yZ7GiV6kTf7Nks5vWBk7gaJpZM4WMcXn>
.
|
You're welcome. This is partly due to the new PSScriptAnalyzer release of |
@bergmeister Yeah, I think we have enough other issues tracking our desire to continue improving performance. Fair to say this one tracked the degradation fixed by 1.18.0. |
Issue Description
I don't know when exactly it started, but at some point in the last few months performance greatly went down for a large file I'm working with (>6k LOC).
Specifically, formatting speed is so slow I rarely use it anymore. Autocomplete is often quite slow that I've stopped relying on it so much as well.
I appreciate what you guys are doing! I'm happy to help in any way I can.
Attached Logs
Verbose logs:
logs.zip
Environment Information
This happens on two computers I use, one with a i7-5820k / 32GB ram, another with i7-8086k / 64GB ram. Both Windows 10 Pro
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: