-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Still slow #117
Comments
Could you grab a trace to see where it's running slowly? Install the Profiler module. Then run: $trace = Trace-Script -ScriptBlock { dir -Recurse | select -First 1000 | ForEach-Object { Format-TerminalIcons $_ } }
$trace.Top50Duration | Format-List |
Here is output for completeness, although I think I had removed some important stuff from
|
Hello, can you tell me how you did to remove those heavy things that made your terminal open slow. I also ran the same commands and got the same list as you. But I don't understand anything. Every time I start my terminal I get a message that says: "Loading personal and system profiles took XXXms." |
The commands I gave were actually just me misunderstanding the problem. I misread his problem as Terminal-Icons slowing the What you'll want to do to profile your $Profile script is:
Then inspect the trace to figure out what's slowing things down. |
Hello, thank you very much for replying. Look, this is what I get after running the commands you shared. I'm not really a very advanced user, I don't know how to reduce as much as possible the time of the powershell terminal. I have even excluded the terminal from the Windows antivirus, and it doesn't work either. 🥲
|
Looks like it worked. Everything should be in the $trace variable. Try the command suggested on the last line of that log you shared. |
In the end I gave up, the creator of this project seems to have abandoned it. I decided to use wsl2 and it has been the best decision I have made. Windows powershel is excellent, and I wanted to have it customized, but in the end it takes away my desire to open it. Sometimes mine reads +4k ms 🤮 |
today i got 4444ms with Terminal-Icons and 753ms without it. |
So, we could assume that the main reason for the long delay is Windows... |
I have not abandoned it 😄 Sorry for not being very responsive on issues, but I have a lot of stuff going on and unfortunately, my OSS work has taken a back seat. |
I have the terminal-icons module installed on my PC and love it to use on daily basis. Currently, I only see performance issue with -@devblackops , would you mind if I try to prepare PR with the performance fixes?- |
@timerplayer Don't mind at all :) |
Not sure I understand the workarounds suggested in other threads - they are years old at this point though.
This is by far the heaviest PS module I've ever seen adding a full 3 seconds on to my Windows Terminal loading time. Something has to be wrong here? Colored stuff like this on bash loads in 10ms ...
The text was updated successfully, but these errors were encountered: