As you might know, the user experience of a web application is very important. Fast request and response times are a must! You can do so much with Cocoon that sometimes you don’t even know the functionality is there. There is already a lot written about Cocoon performance on the website as well as on the wiki, but over the past couple of years I came across a couple of things that could speed up the performance of you Cocoon web application.
Here are a few tips:
- Be careful with non-caching components inside your caching pipelines (like the request generator).
- Be careful with using the resource-exists selector on non-filesystem sources.
- Pick the best XSLT processor in case you need to do a lot of transformations: Saxon or Xalan.
- Try to keep the number of pipelines for a request as small as possible. All pipelines will have to be checked for their validity when a request comes in.
I hope you’ll find these tips useful. Always try to get as much out of you web application as possible!