[Cocoon 3] Optimizing resources creation on SAX pipeline components

2010-01-24 Thread Simone Tripodi
Hi all guys, I'd like to improve a little the resources creation into C3 SAX pipelines components, saving consumed memory and components initialization time, reusing already created resources. I mean, instantiating the same kind of XSLTTransformer (or the SchemaProcessorTransformer) twice, in

Re: [Cocoon 3] Optimizing resources creation on SAX pipeline components

2010-01-24 Thread Reinhard Pötz
Simone Tripodi wrote: Hi all guys, I'd like to improve a little the resources creation into C3 SAX pipelines components, saving consumed memory and components initialization time, reusing already created resources. I mean, instantiating the same kind of XSLTTransformer (or the

Re: [Cocoon 3] Optimizing resources creation on SAX pipeline components

2010-01-24 Thread Simone Tripodi
Hi Reinhard, Thanks for your reply! I wouldn't add a dependency but rather using a simple yet powerful ad-hoc implementation based on LinkedhashMap that allows realizing a memory based LRU cache, I already provided an implementation in Apache Commons Sandbox[1]. If you agree I can start adding it