Use location source object in all selectors still using sources Map.
Categories
(DevTools :: Debugger, task)
Tracking
(firefox113 fixed)
| Tracking | Status | |
|---|---|---|
| firefox113 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file, 1 obsolete file)
Bug 1815500 will start exposing source and sourceActor object on all location objects.
We can drastically simplify and possible get rid of long term performance issues related to the usage of internal "sources" Map coming from sources reducer.
This was used in many places to map location's sourceId to source objects.
We can removes sourcesMap.get(location.sourceId) with location.source.
Doing this may improve many critical selector performance as we would drop this sources Map argument from many createSelector's.
And ultimately, this may allow to finaly make this Map be mutable and avoid having to clone it on each incoming new source.
| Assignee | ||
Comment 1•3 years ago
|
||
This should help speed up a few critical selectors by no longer running them
anytime any source is being added/removed. In addition to removing now useless lookups in this map.
breakpointsSources could be simplified as we never had to sort the visible breakpoints as
we end up sorting by source filename.
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
This should help speed up a few critical selectors by no longer running them
anytime any source is being added/removed. In addition to removing now useless lookups in this map.
breakpointsSources could be simplified as we never had to sort the visible breakpoints as
we end up sorting by source filename.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•