Open
Bug 1385430
Opened 8 years ago
Updated 3 years ago
Searching in large scripts in debugger hangs browser
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(firefox57 fix-optional)
NEW
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fix-optional |
People
(Reporter: tcampbell, Unassigned)
References
(Blocks 1 open bug)
Details
STR:
- Go to netflix.com
- Open devtools debugger
- Find script codex.nflxext.com -> 2.0.0/truthbundle -> akira -> common/bootstrap.js
- Ctrl+F to search source code
- Type 's' 't'
Expected: Able to find strings in source
Actual: After first letter, the browser hangs until a slow script dialog pops up.
I see a lot of time in JS, but we should make sure we aren't doing something silly in debugger too.
BONUS: When the slow-script dialog appears, pressing the debug button will break your browser by leaving you in a nested modal state. Everything reflows correctly, but can't interact with the UI at all.
| Reporter | ||
Comment 1•8 years ago
|
||
(Me or someone from JS should look if the JS portion is worth fixing)
Flags: needinfo?(tcampbell)
| Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(tcampbell)
Summary: Search in debugger is hangs browser on → Searching in large scripts in debugger hangs browser
| Reporter | ||
Comment 2•8 years ago
|
||
Profile: https://perfht.ml/2uGaFXr
| Reporter | ||
Comment 3•8 years ago
|
||
This might be a dupe of Bug 1384536.
Comment 4•8 years ago
|
||
Hi, :tcampbell could you try again? I believe :yulia fixed it last month here (https://github.com/devtools-html/debugger.html/pull/3885)
| Reporter | ||
Comment 5•8 years ago
|
||
It is much faster than it was. I still see 3+ second pauses for simple searches in the example from Comment 0. This is in contrast to opening source view in another tab and using search-in-page which behaves near instantly.
Here is current profile https://perfht.ml/2yw0hjS
One thing that standouts out is |updateHeightsInViewport| seems to cascade into very expensive reflows. I wonder if this is avoidable.
Comment 6•8 years ago
|
||
Thanks :tcampbell, I'll share this in our github issue (https://github.com/devtools-html/debugger.html/issues/4189). I had forgotten that we created a new search perf issue in GH :)
Updated•8 years ago
|
status-firefox57:
--- → fix-optional
Priority: -- → P2
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 7•6 years ago
|
||
Ted, could you test this and see how this is now?
Flags: needinfo?(tcampbell)
| Reporter | ||
Comment 8•6 years ago
|
||
I'm seeing 1 second pauses now which is an improvement over Comment 5. It isn't a pleasant developer experience, but it does at least get results. I notice on the github you experience it as being fast on the Netflix test case. Is it significantly better than 1s per letter for you?
Flags: needinfo?(tcampbell)
Comment 9•6 years ago
•
|
||
Thanks!
Here is a profile http://bit.ly/2TkNnjL. It looks like we're asking a lot of the DOM to add/remove a bunch of these markers if there are 100+ markers. I think we could be better in two ways:
- draw the markers that are visible - we do this for column breakpoints
- remove/add markers in the same operation.
I'm going to move it to a P3 as it is not a priority at the moment.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•