Bug 150856

Summary: [WK2] Add initial support for speculative resource revalidation to the WebKit disk cache
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, cgarcia, commit-queue, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 150898, 150951    
Bug Blocks: 151402    
Attachments:
Description Flags
WIP Patch
none
WIP Patch
none
WIP Patch
none
Patch none

Chris Dumez
Reported 2015-11-03 14:21:59 PST
Add initial support for speculative resource revalidation to the WebKit disk cache. The functionality will be disabled by default until it is more complete / mature.
Attachments
WIP Patch (39.83 KB, patch)
2015-11-10 09:40 PST, Chris Dumez
no flags
WIP Patch (57.32 KB, patch)
2015-11-10 11:47 PST, Chris Dumez
no flags
WIP Patch (39.87 KB, patch)
2015-11-10 11:50 PST, Chris Dumez
no flags
Patch (43.80 KB, patch)
2015-11-11 10:23 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2015-11-03 14:22:17 PST
Chris Dumez
Comment 2 2015-11-10 09:40:19 PST
Created attachment 265188 [details] WIP Patch
WebKit Commit Bot
Comment 3 2015-11-10 09:42:06 PST
Attachment 265188 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:346: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:430: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:106: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:107: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 4 2015-11-10 11:47:52 PST
Created attachment 265209 [details] WIP Patch
Chris Dumez
Comment 5 2015-11-10 11:50:43 PST
Created attachment 265210 [details] WIP Patch
WebKit Commit Bot
Comment 6 2015-11-10 11:53:04 PST
Attachment 265210 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:346: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:428: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:105: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:106: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 7 2015-11-10 13:29:24 PST
Comment on attachment 265210 [details] WIP Patch View in context: https://bugs.webkit.org/attachment.cgi?id=265210&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:136 > +void SpeculativeLoad::cleanup() Maybe call this something else than "cleanup" since it actually invokes the completion handler.
Chris Dumez
Comment 8 2015-11-11 10:23:16 PST
WebKit Commit Bot
Comment 9 2015-11-11 10:25:07 PST
Attachment 265301 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:346: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:427: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:105: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:106: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 10 2015-11-11 13:19:20 PST
Comment on attachment 265301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=265301&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCache.h:87 > +using GlobalFrameID = std::pair<uint64_t /*webPageID*/, uint64_t /*webFrameID*/>; It would be slightly nicer if this was a struct with named fields though I suppose that would make using it as hash key more complicated.
Chris Dumez
Comment 11 2015-11-11 13:24:16 PST
(In reply to comment #10) > Comment on attachment 265301 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=265301&action=review > > > Source/WebKit2/NetworkProcess/cache/NetworkCache.h:87 > > +using GlobalFrameID = std::pair<uint64_t /*webPageID*/, uint64_t /*webFrameID*/>; > > It would be slightly nicer if this was a struct with named fields though I > suppose that would make using it as hash key more complicated. How strongly do you feel about this? :) As you said, I would need to provide HashTraits if I did this. Also, the code should really not need to access actual pair values. The only code that does currently is the Cache Statistics code which is not production code.
Antti Koivisto
Comment 12 2015-11-11 14:11:40 PST
(In reply to comment #11) > (In reply to comment #10) > > Comment on attachment 265301 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=265301&action=review > > > > > Source/WebKit2/NetworkProcess/cache/NetworkCache.h:87 > > > +using GlobalFrameID = std::pair<uint64_t /*webPageID*/, uint64_t /*webFrameID*/>; > > > > It would be slightly nicer if this was a struct with named fields though I > > suppose that would make using it as hash key more complicated. > > How strongly do you feel about this? :) As you said, I would need to provide > HashTraits if I did this. Also, the code should really not need to access > actual pair values. The only code that does currently is the Cache > Statistics code which is not production code. Not strongly at all.
Chris Dumez
Comment 13 2015-11-11 14:12:38 PST
Comment on attachment 265301 [details] Patch go go go
WebKit Commit Bot
Comment 14 2015-11-11 15:01:30 PST
Comment on attachment 265301 [details] Patch Clearing flags on attachment: 265301 Committed r192328: <http://trac.webkit.org/changeset/192328>
WebKit Commit Bot
Comment 15 2015-11-11 15:01:36 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.