Replies: 3 comments
-
I like your first 2 suggestions. I did plan to try and make the app launch faster for the next release after this one (i.e. we're currently working on 1.22 which will release in a month, and I'd like to investigate it afterwards in 1.23). The 3rd point (Edge-style auto-launch on boot) is something I dislike. Instead of not hurting the victim outright (the user), you simply hurt the victim secretly when they don't pay attention, which is IMO morally reprehensible. It doesn't achieve any lasting progress, and in fact it may lower our chances from getting the fundamental issue fixed (which is Edge's and WinUI's continuously worsening performance). (However, I don't mind keeping an instance of WT running after it first launched, which I is something we already support.) |
Beta Was this translation helpful? Give feedback.
-
Yes, It's already implemented 👍 https://learn.microsoft.com/en-us/windows/terminal/customize-settings/startup#continue-running-in-the-background-preview I think you maybe misunderstood me. I don't mean auto launch secretly. I mean combine |
Beta Was this translation helpful? Give feedback.
-
That's a bug for sure. I believe we've already come across this before. We're tracking parts of that issue in #17420 among others. |
Beta Was this translation helpful? Give feedback.
-
Description of the new feature/enhancement
As the title described. On my computer(AMD Ryzen 3600, even slower on Snapdragon 8cx Gen 3):
I do want to help, but after some digging into the code, it quickly turn out that its complexity is far beyond my level. However I think the ideas maybe somehow helpful for core team, so I just take some time to this.
Proposed technical implementation details (optional)
Start profile's command line as early as possible, ideally right after settings loaded. Then the startup of pwsh.exe will overlap with UI initialization. However I don't know it's valid or not, as I am not familiar with terminal things.
Made subsequent process run faster. Currently it need to load the whole settings to get the value of
compatibility.isolatedMode
, which in turn cause time-consumingWindowsXamlManager::InitializeForCurrentThread()
inApp::App()
. It should be avoided, or better, avoid loading the whole settings too.Create spare window thread on idle time after new window showed. Add an option to allow keep running in background just like Edge and tweak auto launch on boot to adapt it. Now event if the first is hard to implement and pwsh.exe is still slow to start, we at least always get quick UI response.
Beta Was this translation helpful? Give feedback.
All reactions