Shakir Ahmed
Shakir Ahmed

Reputation: 547

How can I make my UWP app Fast as Microsoft UWP apps(Mail, Groove Music)?

I want to make my uwp app as fast as possible like Microsoft apps. Whenever I open the Groove Music it is always ready to show me the list of songs even the page I visited last time. It doesn't load for a moment. What's the mechanism behind that? How can I make my app fast like that? actually, I want my app to be always ready to show a list of items in listview whenever I open my app.

Upvotes: 3

Views: 758

Answers (2)

Shakir Ahmed
Shakir Ahmed

Reputation: 547

Check this document. It will make your app really fast like pure Microsoft apps. I am an enthusiastic .net developer. I figured out this.

https://learn.microsoft.com/en-us/windows/uwp/debug-test-perf/best-practices-for-your-app-s-startup-performance

Open properties of the project solution. Go to the build section. Then enable Compile with .NET Native tool chain

Select release instead of debug and then select run or the green button (Local Machine). It will take time and you will see the result after that.

Step 1

Step 2

Upvotes: 1

Stefan Wick  MSFT
Stefan Wick MSFT

Reputation: 13850

The feature you are looking for is called Prelaunch. Most Microsoft apps opt into prelaunch which will make them eligible to get background-launched (and then suspended) opportunistically by the OS, based on some heuristics. Then when the user launches the app, the OS will just need to resume them from suspended state which is much faster than launching them cold. The OS will prioritize apps that the user frequently launches, so you may not see an immediate effect, but over time the user will get better launch times.

https://learn.microsoft.com/en-us/windows/uwp/launch-resume/handle-app-prelaunch

Upvotes: 9

Related Questions