Slow navigation compared to Xamarin Forms #14703
Unanswered
pauldiston
asked this question in
General
Replies: 2 comments 4 replies
-
What target OS/device did you use to measure those times? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Are you compiling in debug or release mode? I've found that in debug mode, MAUI is slower than Xamarin.Forms, but much faster in release. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am in the process of porting a Xamarin Forms application over to .NET MAUI and I am noticing that navigation is quite slow when compared to Xamarin Forms.
For example, I have the following timings for a SimpleView (a series of Labels) :-
.NET MAUI
[0:] Push:SimpleView took 00:00:01.3732189
[0:] Push:SimpleView took 00:00:01.0152959
[0:] Push:SimpleView took 00:00:00.9931281
Xamarin Forms
[0:] Push:SimpleView took 00:00:00.6529151
[0:] Push:SimpleView took 00:00:00.4340805
[0:] Push:SimpleView took 00:00:00.4439873
The timings get worse with a more complex page (ListView with 3 items, data template selectors, quite a few bindings, etc) :-
.NET MAUI
[0:] Push:ComplexView took 00:00:05.9756774
[0:] Push:ComplexView took 00:00:04.8321169
[0:] Push:ComplexView took 00:00:04.4887956
Xamarin Forms
[0:] Push:ComplexView took 00:00:01.8588404
[0:] Push:ComplexView took 00:00:01.0497019
[0:] Push:ComplexView took 00:00:01.0239016
As you can see, it takes nearly 5 times as long to navigate to the ComplexView on .NET MAUI, compared to Xamarin Forms.
I am using a NavigationPage with a call to PushAsync. I am also using version 7.0.81.
Is there anything I am missing in terms of migration steps which would help?
Beta Was this translation helpful? Give feedback.
All reactions