Skip to content
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

Slow launch & UI #536

Open
1 task done
user1823 opened this issue Sep 21, 2024 · 7 comments
Open
1 task done

Slow launch & UI #536

user1823 opened this issue Sep 21, 2024 · 7 comments
Labels
enhancement Enhancement to existing functionality p:1 Priority 1

Comments

@user1823
Copy link

user1823 commented Sep 21, 2024

Preflight Checklist

Problem Description

The UI in Everything Toolbar is slightly slow (when compared to other apps).

Proposed Solution

Does Everything Toolbar use Windows App SDK? Asking because it is a known limitation of that framework and an improvement is available in the latest update (1.6).

Native AOT support

Native AOT support

With 1.6, the Windows App SDK now supports native Ahead-Of-Time (AOT) compilation! When publishing your app as a Native AOT app, you produce an app which has been compiled ahead of time to native code for faster startup time and a smaller memory footprint.

We’re very excited to bring the powerful capabilities of Native AOT to developers through the Windows App SDK! In our sample Contoso Camera app, we measured a 50% reduction in start time, an ~8x reduction in package size when using a framework package and a ~2x reduction in package size when using Windows App SDK in self-contained mode. While your results might vary, we encourage you to give Native AOT a try if it’s right for your app!

For more information about Native AOT, see Native AOT deployment. To get started with Native AOT in your Windows App SDK app, see our release notes for 1.6 for what you need to know and how to set it up.

From https://blogs.windows.com/windowsdeveloper/2024/09/04/whats-new-in-windows-app-sdk-1-6/

Alternatives Considered

None

Additional Information

No response

@srwi
Copy link
Owner

srwi commented Sep 21, 2024

Hi, EverythingToolbar still uses .NET Framework and WPF, so using Windows App SDK is a bit out of the question (but thanks for suggesting!).

I agree that EverythingToolbar can feel slightly sluggish depending on the machine it is running on, but I would be interested to hear from you which parts specifically you notice being slow.

Some things might just be limitations of the tech stack used, while other things could probably be optimized further.

@user1823
Copy link
Author

user1823 commented Sep 21, 2024

The initial launch is slightly slow.
Also, the list of files is displayed a fraction of a second after I type. It is just a fraction of a second. So, it is not a big deal but it is still noticeable. In contrast, in Everything, the list appears without any noticeable lag after I type.

@user1823 user1823 changed the title Slow UI Slow launch & UI Sep 22, 2024
@pa-0
Copy link

pa-0 commented Sep 29, 2024

At least for me, there is a noticable slowdown between v1.5 and the version immediately preceding it -- for both the initial window to appear as well as any search results to populate the window once search terms have been entered.

@srwi
Copy link
Owner

srwi commented Sep 29, 2024

How much slower roughly in milliseconds are we talking here? Could you please try downgrading to 1.4.1 again to confirm that it is indeed faster?

I am not sure which changes would affect performance in any noticable way. I would have to take a close look again.

@srwi
Copy link
Owner

srwi commented Sep 29, 2024

I have played around a little more and noticed these things:

  • There is a delay between mouse release when clicking the taskbar button and the window opening. This is caused by the launcher process starting and sending the "open search window" signal to the already running instance of EverythingToolbar. Possibly this time could be optimized. This delay should be constant and independent of whether it's the first time opening the search window or not.
  • Toggling the search window using the keyboard shortcut (default should be Win+Alt+S) does not have any delay and feel pretty instant on my machine.
  • The closing animation has a lower framerate. This is due to the search window not being focused anymore. WPF will probably assign a lower priority to the animation here. I already looked into that in the past and it's not an easy fix.
  • When opening the search window for the first time this will trigger the first search request. Probably this is what you are referring to with slow first launch. Possibly this could be optimized by doing the first search already in the background.
  • Updating the search results can cause some flickering as already reported in Search result is flashing when inputing search keyword #89.

Did you observe any other systematic slowdowns?

@srwi srwi added enhancement Enhancement to existing functionality p:1 Priority 1 labels Sep 30, 2024
@Hex34568
Copy link

Hex34568 commented Oct 2, 2024

I have played around a little more and noticed these things:

  • There is a delay between mouse release when clicking the taskbar button and the window opening. This is caused by the launcher process starting and sending the "open search window" signal to the already running instance of EverythingToolbar. Possibly this time could be optimized. This delay should be constant and independent of whether it's the first time opening the search window or not.
  • Toggling the search window using the keyboard shortcut (default should be Win+Alt+S) does not have any delay and feel pretty instant on my machine.
  • The closing animation has a lower framerate. This is due to the search window not being focused anymore. WPF will probably assign a lower priority to the animation here. I already looked into that in the past and it's not an easy fix.
  • When opening the search window for the first time this will trigger the first search request. Probably this is what you are referring to with slow first launch. Possibly this could be optimized by doing the first search already in the background.
  • Updating the search results can cause some flickering as already reported in Search result is flashing when inputing search keyword #89.

Did you observe any other systematic slowdowns?

Oh my gosh, please fix that low-framerate closing animation. It really bugs me a lot

@pa-0
Copy link

pa-0 commented Oct 3, 2024

I will try downgrading and report back, sure. I'd say it's actually a couple of seconds rather than milliseconds. By the way, thank you for creating/maintaining this super useful tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing functionality p:1 Priority 1
Projects
None yet
Development

No branches or pull requests

4 participants