Skip to content

Commit

Permalink
perf: add a record struct to _eventHandlers data type
Browse files Browse the repository at this point in the history
Co-authored-by: David <github.site@torick.net>
  • Loading branch information
TopProgrammer77 and dr1rrb authored Jul 10, 2023
1 parent 5ed1a9d commit 0126432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/UIElement.EventRegistration.wasm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public int GetHashCode((string, bool) obj)
}
}

private readonly Dictionary<(string, bool), EventRegistration> _eventHandlers = new Dictionary<(string, bool), EventRegistration>(new TupleComparer());
private readonly Dictionary<(string name, bool onCapturePhase), EventRegistration> _eventHandlers = new Dictionary<(string, bool), EventRegistration>(new TupleComparer());

internal delegate EventArgs EventArgsParser(object sender, string payload);

Expand Down

0 comments on commit 0126432

Please sign in to comment.