Bug 69081

Summary: Web Inspector: speed-up Network panel. Change _staleResources type from array to object.
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 Flags
Patch pfeldman: review+

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>