Repository navigation
Description
What would you like to be added? 💡
Align Uno's managed XAML hot paths with the performance work recently shipped in WinUI 3's Perf2026 effort.
The work covers:
- generated
TemplateBindingfast paths; - lazy evaluation of overridden style setters;
- opt-in optimized Fluent control styles;
- inline storage for small
DependencyObjectCollection<T>instances; - lower-allocation property-path parsing;
- direct inverse-transform operations;
- lazy dependency-object store maps and cached dependency-property metadata;
- Grid-less
FontIcon/BitmapIcontrees; - lower-allocation WebAssembly DOM batching;
- modern .NET synchronization and frozen lookup tables.
Compatibility-sensitive style and visual-tree changes should remain opt-in through FeatureConfiguration.Perf2026.
Why is this needed? 🤔
WinUI's 2026 performance work targets launch time and first-frame costs. Microsoft reported, for the WinUI portion of File Explorer launch, 41% fewer allocations, 63% fewer transient allocations, 45% fewer function calls, and 25% less time in WinUI code.
Uno has equivalent managed hot paths where avoidable objects, reflection, parser allocations, collection backing stores, and visual-tree nodes are created repeatedly. Porting the applicable techniques improves startup, memory pressure, and frame responsiveness across Skia, WebAssembly, and mobile AOT targets while preserving compatibility defaults.
Renderer 🎨
- Skia
- Native
For which platforms 📱💻🖥️
All platforms 🌍
Anything else we need to know? 💬
Primary upstream references:
- WinUI performance announcement: WinUI 3 Performance: A Leap Forward microsoft/microsoft-ui-xaml#11096
- Optional breaking-performance changes: https://github.com/microsoft/microsoft-ui-xaml/blob/main/specs/XamlOptionalChanges/XamlOptionalChanges-Spec.md
- Deferred style values: microsoft/microsoft-ui-xaml@0ae9b9a
- Inline dependency-object collections: microsoft/microsoft-ui-xaml@f235521
- Property-path parser allocations: microsoft/microsoft-ui-xaml@fd139f1
- Direct inverse transforms: microsoft/microsoft-ui-xaml@2739fe9
- Grid-less icons: microsoft/microsoft-ui-xaml@16737fe
- Optimized control styles: microsoft/microsoft-ui-xaml@49b4d53
Activity