Cocoon
Common Weblog
 
SpecialCommon WeblogWeblog
Buy it Buy it

Cocoon Book by Matthew and me


Recommondations:

Buy it Buy it Buy it Buy it

 

10.05.2002

While writing the new caching code, I spotted that the old one is really very imperformant and not so clever as it could be :(

The new caching algorithm will use less hashtables and maps and less object creations. In addition, if only a part of a response is cached, but more can be cached during this processing, the cached part is used to drive the new response (and this is then cached). Sounds a little bit complicated, so here is an example:

Requested: G(c) -> T1(c) -> T2(c) -> T3(c) -> S(c)

The pipeline above is completly cacheable (indicated by the c), but the cache contains only this:

Cached: G(c) -> T1(c)

Now, the old caching algorithm does not use the cached result, so the complete pipeline is processed. The new caching algorithm will use the cached response, feed it into T2 and then cache the complete pipeline.

Ok, perhaps there are only rare cases where this is needed, but I think it's cool anyway.


10:44:21 AM    






© 2003 Carsten Ziegeler
Last Update: 31.03.2003; 15:23:26

Click here to visit the Radio UserLand website.

 

May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun


Subscribe to "Cocoon" in Radio UserLand. Click to see the XML version of this web page. Click here to send an email to the editor of this weblog.

Built with Cocoon