Summary: | Web Inspector: createRawLocationByURL is too slow if a big number of evals happen. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Ilya Tikhonovsky <loislo> | ||||||
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
Ilya Tikhonovsky
2012-05-03 05:06:29 PDT
Created attachment 139990 [details]
Patch
Comment on attachment 139990 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=139990&action=review > Source/WebCore/inspector/front-end/DebuggerModel.js:226 > + _resetScriptsMap: function() _resetScriptsMap -> _resetScriptMaps ? > Source/WebCore/inspector/front-end/DebuggerModel.js:338 > + this._scriptsWithSourceURL[scriptId] = script; Let's introduce a multimap from source URL to scripts instead to avoid the linear pass. Created attachment 140179 [details]
Patch
Comment on attachment 140179 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140179&action=review > Source/WebCore/inspector/front-end/DebuggerModel.js:337 > + scripts = {}; You never get a script by id from this map, why not use an array of scripts instead? Comment on attachment 140179 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140179&action=review > Source/WebCore/inspector/front-end/DebuggerModel.js:223 > + _resetScriptsMaps: function() _reset ? Committed r116077: <http://trac.webkit.org/changeset/116077> |