Opening devtools (any panel) causes big JS slowdown test page with evals
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: bgrins, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Updated•8 years ago
|
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Reporter | ||
Comment 11•8 years ago
|
||
Reporter | ||
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
Reporter | ||
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Updated•8 years ago
|
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Based on comment 8, my conclusion is that there is an inherent cost to evaluating new sources when the debugger is active. This cost, although small, is not negligible, and adds up as the number of calls to eval increases.
Because this cost is inherent, I can't really think of anything to improve the situation. One thing we could do is optionally turn of the newScript notification in the debugger API for eval sources. That would eliminate the increased cost to eval. Unfortunately, it also would make eval sources undebuggable.
If this is the case, I would really like to see the performance of adding additional sources while the dev tools is open improve. At work we have thousands of original sources. In an effort to improve load times, for development we combine all of them into a single file, with an eval for each original source with a // sourcemap
comment in it so that each original source shows up as a separate source in the dev tools. With this setup, loading the page with dev tools open is painfully slow. Sourcemaps aren't an option, because it causes it to perform even worse and often crashes the browser (both firefox and chrome) with how many sources we have.
Comment 18•4 years ago
|
||
We recently implemented some improvements for this, so I'm going to close this. If anyone comes across this and feels they are still seeing a performance hit due to usage of eval
, don't hesitate to file a new bug.
Description
•