Closed Bug 980526 Opened 10 years ago Closed 10 years ago

Setting a breakpoint calls findScripts too often

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1096739

People

(Reporter: fitzgen, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

dbg.findScripts is SSSSSSSSSLLLLLLLLLLLOOOOOOOOOOOOWWWWWWWWWWW!!!

Even if you have a query parameter.

We do it at least twice, maybe even more; I haven't counted.

We could either rework some logic and avoid calling it as much, or we could keep a cache of scripts and update it as onNewScript is fired. The latter might be a bit trickier (maybe not, who knows) but would also allow us to do some interesting indexing that isn't done on the platform level (at least as of yet) which would give us even better speedups when we are using a query parameter.
Hey Nick. This seems like low hanging fruit, and something you could easily fix. Any way I could convince you to write a patch for this? If you're too busy for that, perhaps this would be a good mentored bug?
Mentor: nfitzgerald
Summary: Setting a breakpoint calls dbg.findScripts way too much → Setting a breakpoint calls findScripts too often
Blocks: dbg-server
This will probably be fixed as part of my refactor of the breakpoint code.
This was fixed by bug 1096739.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.