Closed
Bug 980526
Opened 11 years ago
Closed 10 years ago
Setting a breakpoint calls findScripts too often
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
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.
Reporter | ||
Comment 1•11 years ago
|
||
Basically the same check in two different places:
http://dxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/script.js#1339
http://dxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/script.js#1426
Comment 2•10 years ago
|
||
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?
Reporter | ||
Updated•10 years ago
|
Mentor: nfitzgerald
Updated•10 years ago
|
Summary: Setting a breakpoint calls dbg.findScripts way too much → Setting a breakpoint calls findScripts too often
Updated•10 years ago
|
Blocks: dbg-server
Comment 3•10 years ago
|
||
This will probably be fixed as part of my refactor of the breakpoint code.
Reporter | ||
Comment 4•10 years ago
|
||
This was fixed by bug 1096739.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•