When opening PowerShell, it takes quite some time before I get the first prompt. With Command Prompt it is nearly instant. Anything that can be done to improve load times can help all developers.
In this screenshot it took 14 seconds to load the profile.
Steps to reproduce
Use PowerShell or Windows Terminal or Visual Studio Code Terminal to open a PowerShell command prompt.
I do not have any PowerShell extensions installed.
Expected behavior
It should not take as long to open PowerShell.
Actual behavior
I have attached a process monitor log of PowerShell.exe.
LogFile.zip
It seems that there is a lot of opening and closing of registry keys. Maybe that is one area that could be investigated. There is also one thread that appears to takes a few seconds to run.
Environment
Description
When opening PowerShell, it takes quite some time before I get the first prompt. With Command Prompt it is nearly instant. Anything that can be done to improve load times can help all developers.
In this screenshot it took 14 seconds to load the profile.
Steps to reproduce
I do not have any PowerShell extensions installed.
Expected behavior
Actual behavior
I have attached a process monitor log of PowerShell.exe.
LogFile.zip It seems that there is a lot of opening and closing of registry keys. Maybe that is one area that could be investigated. There is also one thread that appears to takes a few seconds to run.