Closed Bug 1976570 Opened 8 months ago Closed 7 months ago

Debugger hangs in sources tree reducer when processing many sources

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Using bug 1653779 comment 17 highlight a performance bottleneck in sources tree reducer when registering many sources.
https://share.firefox.dev/40InQFy

This come from this function which would lookup for the parent directory for each source.

This avoid the lookup of a nested folder in the tree for each individual source.

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → poirot.alex
Attachment #9499625 - Attachment description: WIP: Bug 1976570 - [devtools] Speedup debugger with many sources in the same folder. → Bug 1976570 - [devtools] Speedup debugger with many sources in the same folder. r=#devtools
Status: NEW → ASSIGNED

This data is only used by the project directory root and only for a tooltip.
This should rather be computed on-demand.

This also address a shortcoming when a source was using / in query parameters.

Pushed by apoirot@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/23dc2a2b8bc9 https://hg.mozilla.org/integration/autoland/rev/6aa9ddad6be4 [devtools] Speedup debugger with many sources in the same folder. r=devtools-reviewers,nchevobbe https://github.com/mozilla-firefox/firefox/commit/cb2e5950c141 https://hg.mozilla.org/integration/autoland/rev/a5ddf396b9b5 [devtools] Stop computing and storing a url for each source tree item. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: