MAUI improves Android app start time

The latest preview of .NET Multi-platform App UI (MAUI) is now available with .NET 6 RC2 and in the Visual Studio 2022 Preview 5 preview channel. Improvements in the new version include performance tweaks for help Android apps get started more. Quickly .NET MAUI is the cross-platform .NET application user interface, a framework for building native device applications spanning mobiles, tablets and desktops.

Developers continued to work to supplement and stabilize over 50 controls and layouts, and Preview 9 adds support for borders, corners, and shadows in most controls and layouts.

The performance improvements on Android have been largely made using Ahead-of-Time (AOT) compilation. The developers say that while it can make a big difference in how quickly your apps can boot code on Android, the full AOT can also make your app artifacts bigger than you want them to be. This is a particular problem if you are trying to keep your apps small enough that they can be installed over wifi. The developers say that in this situation, Startup Tracing is the answer. This traces the startup execution path, and then uses AOT only on those parts of your application. It can balance speed and size.

Other improvements to MAUI begin with better implementations of various controls, including boxview, imagebutton, and webview, which use the platform’s native browser control to render any inline or embedded HTML content. The MAUI team claims that this makes it ideal for displaying more complex markup than the subset of HTML supported by Label.

More obviously, there is a new Microsoft.Maui.Graphics library that provides a consistent UI drawing API based on native graphics engines. This makes it easy to add borders, corner rendering, and shadows to most layouts and controls in .NET MAUI.

.NET MAUI is part of the latest .NET preview and is available now.

More information

MAUI on GitHub

Related Articles

.NET MAUI adds new layouts

Microsoft will replace Xamarin forms with MAUI .NET

.NET 6 Preview adds MAUI

Visual Studio 2022 Preview 2 targets productivity

Developer Preview of .NET 6 Released

New in Windows Forms .NET

Xamarin Forms 3.0 adds Visual State Manager

To be informed of new articles on I Programmer, subscribe to our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.




or send your comment to: [email protected]

Source link

Comments are closed.