WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141110
Use simpler CachedResourceMap structure in MemoryCache with CACHE_PARTITIONING enabled
https://bugs.webkit.org/show_bug.cgi?id=141110
Summary
Use simpler CachedResourceMap structure in MemoryCache with CACHE_PARTITIONIN...
Chris Dumez
Reported
2015-01-30 22:45:51 PST
Use simpler CachedResourceMap structure in Memory with CACHE_PARTITIONING enabled. Previously, we would be using a HashMap of HashMap to store CachedResources. The outer HashMap would use the URL as key and the inner HashMap using the partition name as key. This would make traversing the structure overly complicated, especially considering that the code needs to traverse a simple HashMap if CACHE_PARTITIONING is disabled. This patch updates the CachedResourceMap structure to be a simple HashMap, whose key is an std::pair<URL, String /* partitionName */>. Having a flat structure simplifies the traversal code a lot and enables more code sharing between CACHE_PARTITIONING and !CACHE_PARTITIONING. This shouldn't regress performance because we already have both a URL and a partition name when we need to look up a resource. We never need to retrieve all resources with a particular URL.
Attachments
Patch
(14.56 KB, patch)
2015-01-30 22:52 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(14.95 KB, patch)
2015-01-31 13:17 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(14.95 KB, patch)
2015-01-31 13:18 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-01-30 22:52:11 PST
Created
attachment 245773
[details]
Patch
Chris Dumez
Comment 2
2015-01-31 13:17:05 PST
Created
attachment 245796
[details]
Patch
Chris Dumez
Comment 3
2015-01-31 13:18:53 PST
Created
attachment 245797
[details]
Patch
Antti Koivisto
Comment 4
2015-01-31 18:33:53 PST
Comment on
attachment 245797
[details]
Patch nice
WebKit Commit Bot
Comment 5
2015-01-31 19:11:12 PST
Comment on
attachment 245797
[details]
Patch Clearing flags on attachment: 245797 Committed
r179456
: <
http://trac.webkit.org/changeset/179456
>
WebKit Commit Bot
Comment 6
2015-01-31 19:11:22 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug