Bug 69081 - Web Inspector: speed-up Network panel. Change _staleResources type from array to object.
Summary: Web Inspector: speed-up Network panel. Change _staleResources type from array...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ilya Tikhonovsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 04:10 PDT by Ilya Tikhonovsky
Modified: 2011-09-29 04:58 PDT (History)
10 users (show)

See Also:


Attachments
Patch (4.76 KB, patch)
2011-09-29 04:20 PDT, Ilya Tikhonovsky
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2011-09-29 04:10:52 PDT
there is a test with 30 requests.
For the each stage of loading the resource we have an entry in _staleResources array. There is at least 4 stages per request.
_refresh function is creating/updating the resource row for each such entry.
this array can be replaced with a hash map just because the resource associated with the entry is the same for all such entries with the same request id.
Comment 1 Ilya Tikhonovsky 2011-09-29 04:20:33 PDT
Created attachment 109147 [details]
Patch
Comment 2 Ilya Tikhonovsky 2011-09-29 04:58:35 PDT
Committed r96321: <http://trac.webkit.org/changeset/96321>