cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Increasing perceived performance
Date Sat, 02 Feb 2002 23:04:42 GMT
Stefano Mazzocchi wrote:

>Cocoon is a complex beast, we all know this, but I find it irritating
>that people believe that cocoon is slow just because they *perceive* it
>to be so.
>Now, can't we polish the component manager to load packages only when
>they are required?
>This would also partially solve the problems of Batik requiring an X
>Server: if you don't ask for the Batik classes, they are not loaded and
>we don't have any problems (and we save lots of memory and lots of
>startup time).
>What do you think?
This is a well-known problem : developpers often complain about the long 
compile-and-test round-trip time, and when making a demo on  laptop to a 
customer, you need good talking abilities to fill the time needed by 
Cocoon to warm up :(

We have here two contradictory siturations :

- in development/demo phases, we want fast startup, which means load-on 
demand. Also, we don't care if some parts of our app. won't run because 
of a misconfiguration, missing class or wrong enviromnent : we just 
don't use them for the demo and everything's ok.

- in production phase, we don't care about startup time, but want to be 
sure everything's ok at startup. This means load-on-startup, because we 
don't want the app. to barf at the face of the first browser using a 
missing / misconfigured component which could have been detected early.

Avalon's ComponentManager only loads at startup today (including filling 
the pools). We can update it to support both strategies. The choice 
between them could be done using a Context entry coming from the servlet 
init parameters. We could then change the loading strategy with a single 
line in web.xml.

Thoughts ?

Also, about Batik : if your app. doesn't produce dynamic images, don't 
declare the SVG serializer and Batik won't load. Otherwhise, you're very 
likely to need an X server to render the images ;)

Finally [shameless plug], don't forget the TreeProcessor which greatly 
improves sitemap load time !


Sylvain Wallez
Anyware Technologies -

To unsubscribe, e-mail:
For additional commands, email:

View raw message