Fri Jun 13 18:29:45 2003

AxKit Performance Tips

Here are some configuration tidbits to help performance:

  • AxDependencyChecks Off

    This is on by default, and its the flag to tell AxKit to check all dependencies when making a request. If you have a complex system with lots of XSLT transformations or XSLT pages with lots of includes/imports or lots of external entities or xincluded files then AxKit will stat() each and every file in the request chain before deciding whether or not to deliver the cache. With this on AxKit will just go straight to the cache file if it exists and otherwise re-create the cache.

    Setting this config directive will make the biggest difference to the performance of AxKit with a slight flexibility penalty.

  • AxIgnoreStylePI On

    Ignores <?xml-stylesheet?> processing instructions in your document. Even if these are not present this flag will make a slight performance difference as it means some code doesn't have to be touched.

  • AxDebugLevel 0

    Debugging takes some time. Turn it off.

  • AxGzipOutput On

    This may seem like a strange option for performance, but it really does help! AxKit caches gzipped files alongside non-gzipped files, so that it can deliver them efficiently without any extra effort. So enabling this allows your server to finish the request quicker and thus serve other requests.

  • SetHandler axkit

    Make sure you use SetHandler axkit rather than PerlHandler AxKit. The latter was the original way to run AxKit, but goes through a lot more stages in the mod_perl engine before getting to AxKit. The former goes straight from C code inside Apache direct into the AxKit main handler chain.


Edit This Page / Show Page History /