Re: [webkit-dev] Disk cache

2014-11-01 Thread Carlos Garcia Campos
El vie, 31-10-2014 a las 19:02 +0200, Antti Koivisto escribió:
 Hello,
 
 
 I'm planning to add an experimental HTTP cache implementation to
 WebKit (https://bugs.webkit.org/show_bug.cgi?id=30322).

Great news!

  The main motivations are:
 
 
 - Improving performance by bringing the cache closer. For example we
 can serialize WebKit response objects directly instead of converting
 to/from platform types.
 - Making future innovation around caching easier. Closer coordination
 between cache and WebKit opens new optimization possibilities.
 
 
 The cache lives in the network process. Most of the code is
 cross-platform. The storage backend uses libdispatch IO though it
 wouldn't be hard to add a generic posix one too.

Why is it limited to the network process? wouldn't it be possible to use
it also in the web process when shared secondary process model is used?

 
 The code will be behind NETWORK_CACHE feature flag.
 
 
 
 
   antti
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Disk cache

2014-11-01 Thread Antti Koivisto
On Sat, Nov 1, 2014 at 7:03 AM, Alex Christensen 
alex.christen...@flexsim.com wrote:

 Would anything special need to be done for Windows?


Is there some Windows port that uses network process? As I mentioned
enabling the feature would require Windows specific backend implementation.
Just compiling it out requires no action.


   antti



 Alex

 On Oct 31, 2014, at 11:02 AM, Antti Koivisto koivi...@iki.fi wrote:

 Hello,

 I'm planning to add an experimental HTTP cache implementation to WebKit (
 https://bugs.webkit.org/show_bug.cgi?id=30322). The main motivations are:

 - Improving performance by bringing the cache closer. For example we can
 serialize WebKit response objects directly instead of converting to/from
 platform types.
 - Making future innovation around caching easier. Closer coordination
 between cache and WebKit opens new optimization possibilities.

 The cache lives in the network process. Most of the code is
 cross-platform. The storage backend uses libdispatch IO though it wouldn't
 be hard to add a generic posix one too.

 The code will be behind NETWORK_CACHE feature flag.


   antti

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Disk cache

2014-11-01 Thread Antti Koivisto
On Sat, Nov 1, 2014 at 10:13 AM, Carlos Garcia Campos carlo...@webkit.org
wrote:

 El vie, 31-10-2014 a las 19:02 +0200, Antti Koivisto escribió:
  Hello,
 
 
  I'm planning to add an experimental HTTP cache implementation to
  WebKit (https://bugs.webkit.org/show_bug.cgi?id=30322).

 Great news!

   The main motivations are:
 
 
  - Improving performance by bringing the cache closer. For example we
  can serialize WebKit response objects directly instead of converting
  to/from platform types.
  - Making future innovation around caching easier. Closer coordination
  between cache and WebKit opens new optimization possibilities.
 
 
  The cache lives in the network process. Most of the code is
  cross-platform. The storage backend uses libdispatch IO though it
  wouldn't be hard to add a generic posix one too.

 Why is it limited to the network process? wouldn't it be possible to use
 it also in the web process when shared secondary process model is used?


The cache ties to NetworkResourceLoader which lives in the network process.
In principle it would be possible to integrate with the web process side
resource loader too. However I don't want to support multiple
configurations during development.

It would be good if all WK2 ports would eventually switch to using the
network process. The current multitude of configurations makes networking
related code more confusing and less hackable than it needs to be.


   antti



 
  The code will be behind NETWORK_CACHE feature flag.
 
 
 
 
antti
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  https://lists.webkit.org/mailman/listinfo/webkit-dev


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev