Bug 54010

Summary: Web Inspector: script formatter should not create a worker for each script.
Product: WebKit Reporter: Pavel Podivilov <podivilov>
Component: Web Inspector (Deprecated)Assignee: Pavel Podivilov <podivilov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch. yurys: review+

Pavel Podivilov
Reported 2011-02-08 09:05:08 PST
Reusing a worker results in a much better performance when formatting multiple scripts inlined in html.
Attachments
Patch. (2.55 KB, patch)
2011-02-08 09:06 PST, Pavel Podivilov
yurys: review+
Pavel Podivilov
Comment 1 2011-02-08 09:06:01 PST
Yury Semikhatsky
Comment 2 2011-02-08 23:46:07 PST
Comment on attachment 81644 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=81644&action=review > Source/WebCore/inspector/front-end/ScriptFormatter.js:133 > + this._lastTask = task; I'd rather use and array with its push/shift methods
Pavel Podivilov
Comment 3 2011-02-09 02:12:34 PST
Note You need to log in before you can comment on or make changes to this bug.