Open Bug 935664 Opened 11 years ago Updated 2 years ago

Syntax Highlighting large files hangs the browser

Categories

(DevTools :: Source Editor, defect, P3)

24 Branch
x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: potch, Unassigned)

References

Details

(Keywords: DevAdvocacy, Whiteboard: [DevRel:P2])

Attachments

(1 file)

Open up the Debugger and visit marketplace.firefox.com

Observe the beach ball.

Any way to do this off the main thread?
I'm not sure it's the syntax highlighting, when I first opened that page I got a smallish file opened. It may well be the transfer of sources from the backend to the frontend. It certainly is a bug.
I'm not getting too much jank on marketplace.firefox.com. A better testcase is http://web.tweetdeck.com and selecting the defuault.329873298524965892.js. I get less jank if I pretty print the file, so I suspect this has to do with the really long columns that come with minified js.
Component: Developer Tools: Debugger → Developer Tools: Source Editor
Priority: -- → P3
So I did some trivial profiling/exploration: TweetDeck is not beach-balling for me at all while Marketplace is beach-balling whether i have devtools opened or not. (I.e. if I switch to another tab and then back to marketplace, I have 3-4 seconds long beach-ball action) Profiler showed Marketplace's include.js taking 90% of the time.
Attached image screen shot of profile
Disabling devtools.debugger.auto-pretty-print highlights the problem. It seems that it is only an issue with large columns.

Seeing about 50% of time spent in code mirror, and hard jank for about 2 or 3 seconds.
Keywords: DevAdvocacy
Any updates on this bug?
Whiteboard: [DevRel:P2]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: