forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: CLI and the Cocoon cache
Date Mon, 11 Aug 2003 04:59:55 GMT
On Sun, Aug 10, 2003 at 05:53:07PM +0100, Upayavira wrote:
> Just thought you guys might like to see some figures. I realised recently that 
> Cocoon by default uses a transient cache, which means that the cache is lost 
> every time Cocoon restarts. And of course every run of the CLI restarts Cocoon, 
> thus clearing the cache :-(  I've asked for help on cocoon-dev to get Cocoon to use 
> a persistent cache. We'll see how I get on...
> 
> Anyway, to show the sort of impovements possible, here's two pages, each 
> generated twice in the same instance of Cocoon, thus the second rendering of 
> each page is cached. 
> 
> * docs/index.html [4.447 seconds]
> * docs/index.html [0.3 seconds]
> * samples/hello-world/hello.html [0.381 seconds]
> * samples/hello-world/hello.html [0.04 seconds]
> Total time: 0 minutes 14 seconds

Wohoo!  Upayavira, please try NOT to get hit by any buses over the next
few weeks ;)  It would be a devastating blow to Forrest.


--Jeff

> Last time we managed a reduction of around 50%, which was good. This time we 
> could get a factor of ten improvement!
> 
> Once I've got it consistently rendering from the cache, I'll look into preventing it

> from writing the file when it chooses to use the cached version, which'll improve 
> matters even more.
> 
> Thought you guys like these figures!
> 
> Regards, Upayavira
> 

Mime
View raw message