maui-performance
Installation
SKILL.md
.NET MAUI Performance Optimization
Profiling
- dotnet-trace: Cross-platform profiler for all MAUI targets. Collect traces with:
dotnet-trace collect --process-id <PID> --providers Microsoft-DotNETCore-SampleProfiler - PerfView (Windows only): Use for deep allocation and CPU analysis on WinUI targets.
- Profile before optimizing — measure, don't guess.
Compiled Bindings
- Always set
x:DataTypeon pages/views to enable compiled bindings. - Compiled bindings are 8–20× faster than reflection-based bindings.
- Required for NativeAOT and full trimming — reflection bindings break under trimming.
- Apply
x:DataTypeat the highest reasonable scope (page or root element).
Related skills