Comparing performance in debug and release configurations
Many developers new to .NET MAUI often feel disappointed by the performance, especially when even a simple page can take a second to load in debug mode. The good news is that you can reduce this loading time by 30-60% just by switching to release mode.
It’s no secret that release mode outperforms debug mode, but the difference in .NET MAUI can be particularly striking. In this recipe, we’ll not only switch from debug to release mode but also measure the performance boost this change provides. This measurement technique will serve as a foundation for future recipes, where we’ll assess the effectiveness of our optimizations.
Getting ready
To follow the steps described in this recipe, we just need to create a blank .NET MAUI application.
The code for this recipe is available at https://github.com/PacktPublishing/.NET-MAUI-Cookbook/tree/main/Chapter08/c8-DebugVsRelease.