Bug 44058 - Startup times are abysmal
Summary: Startup times are abysmal
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: All All
: Highest normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-07 16:00 UTC by Daniel.Pflughoeft
Modified: 2017-11-13 14:05 UTC (History)
12 users (show)

Tags: ac, android, performance, startup
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 44058 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Daniel.Pflughoeft 2016-09-07 16:00:37 UTC
My startup screen shows two buttons and a label in a StackLayout, and does nothing more. I've timed the app to take 2.5~3.0 seconds just to show that screen, in Release mode, on an actual device (Motorola Mini XT1030). That's an absurd and unacceptable amount of time.

From the discussions here (http://forums.xamarin.com/discussion/comment/219519) the issue is present for native Xamarin apps, but is *especially* bad for Xamarin Forms.

iPhone4:
    Native program: <1s -the app was immediately loaded.
    Xamarin.iOS: ~2s
    Xamarin.Forms: ~3s

Samsung S3:

    Xamarin.Android: ~2s
    Xamarin.Forms: ~3s

This needs to be addressed.
Comment 1 Daniel.Pflughoeft 2016-09-07 16:25:26 UTC
I also found https://bugzilla.xamarin.com/show_bug.cgi?id=24694 which appears to have gone unnoticed so far
Comment 2 Daniel.Pflughoeft 2016-09-07 21:20:21 UTC
Other possibly related bugs I've found (but not duplicates):

https://bugzilla.xamarin.com/show_bug.cgi?id=42948
"Android layouts generated from xaml are overly complex and causing performance issues"

https://bugzilla.xamarin.com/show_bug.cgi?id=40523
"Creating controls at runtime is much slower than with native Xamarin.Android project"

https://bugzilla.xamarin.com/show_bug.cgi?id=42335
"XF for Android is much slower than its iOS counterpart"

https://bugzilla.xamarin.com/show_bug.cgi?id=41863
"Xamarin Forms performance is still slow on Android"

It seems Xamarin Forms (especially on Android) has SERIOUS performance issues that make it completely not ready for production.  I don't understand how this is not their #1 top priority, nevertheless how they haven't even *commented* on it yet...
Comment 3 Rui Marinho 2016-10-04 11:46:29 UTC
Hi, thanks for your report, we are looking at Android performance we are addressing these other bugs, please follow up in the more specific bugs for feedback, closing since this is just to generic. 

Thanks
Warm Regards

Xamarin Forms Team

*** This bug has been marked as a duplicate of bug 40523 ***
Comment 4 Daniel.Pflughoeft 2016-10-05 22:10:38 UTC
I'm reopening this because it's not at all a duplicate of 40523.  That is talking about poor performance in general of Xamarin Forms on Android.  This one is talking about poor startup performance of Xamarin Forms, on all platforms.
Comment 5 dhaligas 2016-12-08 16:36:10 UTC
@rui @jason I am seeing this as well in the most basic of apps.  please address this
Comment 6 Chris King 2017-06-19 16:35:54 UTC
Assigned to you because bug you were last to resolve bug before it was re-opened.
Comment 7 Cody Beyer (MSFT) 2017-06-19 21:42:49 UTC
I am marking this as a duplicate because the same underlying issue as at the root of this issue.

*** This bug has been marked as a duplicate of bug 40523 ***
Comment 8 Daniel.Pflughoeft 2017-06-19 22:04:37 UTC
I'm reopening this because it's not at all a duplicate of 40523.  That is talking about poor performance in general of Xamarin Forms on Android.  This one is talking about poor startup performance of Xamarin Forms, on all platforms.
Comment 9 David Ortinau [MSFT] 2017-06-23 15:18:47 UTC
It's all related, but I understand your point that it's not a direct duplicate of that report.

We are absolutely working to improve startup performance, and we have several improvements slated for 3.0 on the roadmap that will make a difference.

re: comparing Xamarin.Forms to Xamarin.Android: https://forums.xamarin.com/discussion/comment/268432/#Comment_268432
Comment 10 Paul Vrugt 2017-11-10 15:22:12 UTC
We also run into this problem. Starting our (not so large) app on our android test devices takes up to 10 seconds. Starting the IOS version of the same app takes about 1,5 second.

Our customers are complaining about the startup time. I really want to be able to do something to increase the startup time.
Comment 11 harel123 2017-11-13 14:05:07 UTC
I'm running into a similar problem - my startup times on the emulator are usually around 10 seconds, and on my actual physical device there are times when it takes over 1 minute(!!!) (although this might be an issue with my device specifically and also I haven't tried testing on any other device but my own so far and I haven't tried to deploy in Release mode to my device, only Debug mode so far).