forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1880809 - [devtools] Use binary search when adding sources in the…
… source tree. r=devtools-reviewers,nchevobbe This helps address a performance issue when a bulk or sources are registered. We could have use findIndexLast, given that the sources are often coming sorted, but this is not always the case. For example when a new arbitrary source is created by the page. Also, while the sources look sorted, there is no actual sort being done from the Source Map Worker, nor by the SOURCE server resource watcher. We would need to add sorting there to be reliable. In this patch, I'm also avoiding unecessary array in the actor codebase, and, simplifying the load source map actions. Differential Revision: https://phabricator.services.mozilla.com/D202149
- Loading branch information
Showing
6 changed files
with
66 additions
and
37 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
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
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