Closed Bug 1818496 Opened 3 years ago Closed 3 years ago

Use location source object in all selectors still using sources Map.

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
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.

Blocks: 1820806

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.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

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.

Attachment #9323444 - Attachment is obsolete: true
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6f37bad71391 [devtools] Stop using sources reducer's internal Map to map location sourceId to source objects. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: