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.
Created attachment 245773 [details] Patch
Created attachment 245796 [details] Patch
Created attachment 245797 [details] Patch
Comment on attachment 245797 [details] Patch nice
Comment on attachment 245797 [details] Patch Clearing flags on attachment: 245797 Committed r179456: <http://trac.webkit.org/changeset/179456>
All reviewed patches have been landed. Closing bug.