Andreas Hartmann schrieb:

[...]

One approach would be to override the IncludeTransformer. The existence of the missing sources would be checked everytime the content is requested, and if the sources still don't exist and the other source validities are still valid, the cached content is returned. I think this is worth a try, when I find the time I'll try to implement this and do some more testing.

This seems to work. I submitted a bug report and attached a patch:

https://issues.apache.org/jira/browse/COCOON-2166

I also refactored and simplified the i18n catalogue generation so that the catalogue is cacheable for each publication+language combination. Now I have the following test results:

* Lenya 2.0.2-dev
* fallback cache enabled
* patch from Cocoon issue 2166
* 20 requests to /default/authoring/index.html

-> avg. 600 ms


That's less than half the processing time of 2.0.1. I hope I didn't introduce some simplifications which destroy functionality. Tomorrow and on the weekend I'll do more testing.

I used to think that Java code bottlenecks have a big impact, but they seem to be peanuts compared to overly complex and uncached pipelines.

-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to