-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Description This is a cherry-pick of #21568 There are currently scenarios in which hundreds of thousands of event subscriptions can occur on nodes in a SharedTree (that is a separate bug that is also being fixed) and that case, the linear walk of the event registrations that is required to validate that an event listener is not a duplicate is prohibitively expensive. This removes the error, and slightly relaxes the contract to be that duplicate event listeners cause undefined behavior, rather than an error.
- Loading branch information
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters