microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.79k stars 6.53k forks source link

[Run] Needed quicker response for Alt + Space #8873

Closed snehitvaddi closed 3 years ago

snehitvaddi commented 3 years ago

📝 There is a huge response delay after pressing "Alt + Space bar" for a quick search.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

enricogior commented 3 years ago

@snehitvaddi what version of PowerToys are you running?

snehitvaddi commented 3 years ago

Version: v0.29.3

enricogior commented 3 years ago

@snehitvaddi how long does PT Run take to show up? What CPU do you have? SSD or hard disk?

snehitvaddi commented 3 years ago

It is taking at least 3-4 seconds. Numerically it may sound like very less time, but looking at other applications this feels very unresponsive.

OS: MS Windows 10 Home System Type: x64-based PC Model: Surface Laptop 2 Processor: Intel Core i5-8250U @ 1.60GHZ RAM: 8GB Rom: 256GB SSD

enricogior commented 3 years ago

@snehitvaddi

It is taking at least 3-4 seconds

That is very slow, anything above 0.5 seconds is kind of unacceptable. We will add more debug logging to help diagnosis this problem.

crutkas commented 3 years ago

@enricogior, that is basically my work laptop. i have an i7 / 16 gig of ram but

sid-6581 commented 3 years ago

I have the same issue, it's sometimes slow to pop up, even on my 64gb 3900x system with NVME M.2 drives. Typing is also much too slow. It appears that the list of matches is updated as I type, synchronously, and new keystrokes aren't accepted until the list is populated. It would be a better experience if the list was updated asynchronously.

amzon-ex commented 3 years ago

Having the same issue. (Very) Slow to appear with Alt + Space and often takes delayed input. (HDD, 8GB RAM, i5-5200U 2.20 GHz)

alejandrotrevi commented 3 years ago

Same issue here on a AMD Ryzen 5 3400G, 16GB, SSD

jaanli commented 3 years ago

Still an issue here on v0.35.0, SSD, Macbook Pro 16GB RAM. Wox does not have this issue..

SageEx commented 3 years ago

Updating the list asynchronously is a very basic requirement for a launcher. When I start writing "Android Studio", there's a noticeable lag between pressing 'nd' and 'nd' showing up on the launcher. Sometimes it's slow enough that I think I may have mistyped and press backspace only to realize that it was a lag. Pls update the list asynchronously - it'll be a big UX improvement.

I have a Thinkpad Yoga with Intel i7-8665U CPU and 16GB RAM, 500GB SSD.

mykhailopylyp commented 3 years ago

@snehitvaddi Can you update to the latest version(0.37.2) and check if it still happens. If it still happens Right-click on the PowerToys icon in the tray menu and select Report Bug image Drag and drop report into a GitHub comment.

mykhailopylyp commented 3 years ago

@SageEx Please, leave your comment here. Along with a bug report.

alejandrotrevi commented 3 years ago

PowerToysReport_2021-06-07-20-31-13.zip

Still happening, there are two delays one is the first time you open the search bar, the other is anytime you are typing, sometimes you can't type anymore until i guess there are results or something like that so it feels laggy

mykhailopylyp commented 3 years ago
[2021-06-07 20:17:58.6056] [INFO] [S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50]
Microsoft.Plugin.Program.Main - Package index cost <7686ms>

[2021-06-07 20:18:06.4744] [INFO] [S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50]
Microsoft.Plugin.Program.Main - Win32Program index cost <15555ms>

Is part of https://github.com/microsoft/PowerToys/issues/7208

mykhailopylyp commented 3 years ago

@snehitvaddi Can you update to 0.41.4 and verify if it is acceptable now?

snehitvaddi commented 3 years ago

@mykhailopylyp The issue persists but slight improvement than earlier rollouts. In the past, it used to take 4 seconds. Now it is taking around 3-4 seconds, but as I said before, it lags only during the first instances after every restart. Then after it works absolutely fine.

davidegiacometti commented 3 years ago

@mykhailopylyp since during startup the visibility of the MainViewModel is set to Visibility.Collapsed the OnLoaded for the MainWindow is called only when the PT Run shortcut is pressed for the first time.

mykhailopylyp commented 3 years ago

@davidegiacometti

since during startup the visibility of the MainViewModel is set to Visibility.Collapsed the OnLoaded for the MainWindow is called only when the PT Run shortcut is pressed for the first time.

What do you want to say by it?

mykhailopylyp commented 3 years ago

We should make Program indexing asynchronous so it doesn't block startup

davidegiacometti commented 3 years ago

@davidegiacometti

since during startup the visibility of the MainViewModel is set to Visibility.Collapsed the OnLoaded for the MainWindow is called only when the PT Run shortcut is pressed for the first time.

What do you want to say by it?

Users are experiencing delay the first time they press the shortcut after PT startup. Maybe the delay is caused by the MainWindow Loading that usually should be executed on application startup.

mykhailopylyp commented 3 years ago

@davidegiacometti Good catch! We should measure MainWindow's loading/rendering time.

davidegiacometti commented 3 years ago

@mykhailopylyp It should be possible to set the Visibility Collapsed after the loading. During the loading the window shouldn't be visible. I can test and made a PR but let me know if you want to measure the loading time before change this.

mykhailopylyp commented 3 years ago

We should test if the above PR resolved the problem in the next release.

davidegiacometti commented 3 years ago

@snehitvaddi @alejandrotrevi can you please update to version 0.43 and check if you are still experiencing lag the first time PT Run is opened? Thanks

alejandrotrevi commented 3 years ago

Just tested on a desktop pc with a regular ssd and a laptop with an nvme ssd:

Boot time on both is pretty good, instant basically, even on first boot. Searching is really fast. No issues atm.

However there's a little bit of delay on both when im deleting my current search, example:

  1. Search for Chrome
  2. Backspace until there's nothing

That could be me tho i need someone else to confirm.

mykhailopylyp commented 3 years ago

Closing it as @alejandrotrevi confirmed the first-time delay was fixed. @davidegiacometti, great job!

Kamek437 commented 4 months ago

This shouldn't be closed. It is still slow as hell. Uninstalling because of it. Keypirrhna is way better.

hkpD commented 3 months ago

I am extremely annoyed by this issue... the ONLY APP that I want out of the whole PowerToys suite is PowerToys Run, and it takes 16 seconds for it to launch after I press the hotkey. In the logs, I keep getting a "App.OnStartup - Startup cost <16923ms>" from WOX. I have turned Windows search off, turned it back on, ran the Windows Search troubleshooter, I have changed the Windows Search mode to Classic, I have changed it to Enhanced mode, I have reindexed all of my files. I am literally running out of options. PowerToys Run is the ONLY app that I want and it's the ONLY one that is not working. And to make it even worse, every single open issue that I follow that's similar to this issue ends in, "oh, this is a duplicate. I'm closing this ticket" or "oh, go to this thread instead to follow it" then you go to the thread and someone from Microsoft is like, "oh, this is aduplicate. Please go here to follow the new related thread." And none of the threads lead anywhere!

sid-6581 commented 3 months ago

@hkpD if you're looking for something like Run that actually works, pops up instantly, and has a ton more features, I suggest looking at Fluent Search. I switched to it over a year ago after getting tired of waiting for Run to be fixed (sounds like it still isn't), and it is better in every way.

hkpD commented 3 months ago

@sid-6581 Thank you very much for the suggestion, sir. I have been using Flow Launcher for the longest time but now I am going to try out Fluent Search too to see how I like it.

I guess I just have the hope that one day Microsoft will fix this. I keep coming back to this issue every couple months or so and it's just upsetting that it has not been fixed yet.

Kamek437 commented 3 months ago

https://keypirinha.com/ is faster and better than fluent search by a mile. Only uses 26 MB RAM and is instant. Plus plugins. No, I don't work for them, it's what I've been using for 8 or so years. I looked at Powertoys run but 500 MB RAM is too much for a launcher I'm sorry.

sid-6581 commented 3 months ago

https://keypirinha.com/ is faster and better than fluent search by a mile. Only uses 26 MB RAM and is instant. Plus plugins. No, I don't work for them, it's what I've been using for 8 or so years. I looked at Powertoys run but 500 MB RAM is too much for a launcher I'm sorry.

Keyprinha hasn't been updated since 2020 and embeds python for plugins? That doesn't sound fantastic.

Kamek437 commented 3 months ago

The results speak for themselves. When the software is complete, it should not have to be updated again. Look at the top 5 rust crates, none have been updated for 5 years or more. They are done. You don't need to use the plugins, there is also a plugin manager I didn't have to fuss with any Python anything it just works. If there is a faster better smaller solution please let me know. No emacs or vim are not solutions to a launcher program. Python was meant to be embedded so that non-programmers could create things like plugins, Sublime Text and VSCode do the same. Using a thing for its intended purpose to be hospitable to the user is not a good thing to you? Who do you work for?