Closed Bug 1602910 Opened 6 years ago Closed 6 years ago

Memoize getBreakpointSources

Categories

(DevTools :: Debugger, enhancement)

enhancement
Not set
normal

Tracking

(firefox73 fixed)

RESOLVED FIXED
Firefox 73
Tracking Status
firefox73 --- fixed

People

(Reporter: jlast, Assigned: jlast)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

getBreakpointSources currently re-computes whenever the source list changes. This happens on popup preview and can be expensive for two reaons:

  1. grouping breakpoints by source can take awhile for lots of bps and sources
  2. re-render the breakpoints pane can be ~13 ms

We should try and avoid this

Assignee: nobody → jlaster
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e53756abfbfb Memoize getBreakpointSources. r=bhackett
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47379e247e51 Memoize getBreakpointSources. r=bhackett
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
Flags: needinfo?(jlaster)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: