[Perf] Avoid the materialization of list of handlers when raising events #16320
Labels
area/performance 📈
Categorizes an issue or PR as relevant to performance
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/enhancement
New feature or request
triage/untriaged
Indicates an issue requires triaging or verification
What would you like to be added
When we raise routed events args, we are creating a new array (not even pooled!) which contains the list of all event handlers for the given event:
uno/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs
Line 693 in 1d71b1b
handlers
collection!Why is this needed
No response
For which platform
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: