- Improving the Performance of Static Components
- Improving the Performance of Dynamic Components
- Tomcat 5.5.1 Release Highlights
Improving the Performance of Dynamic Components
If you're using dynamic components and scripting—as found in mod_perl, PHP, Python, and the Jakarta interface for Java, for example—consider embedding the interpreter into the Apache executable itself. This technique removes the initial loading of dynamic scripts—and, in the current Apache release, the parsed script is cached.
Getting these scripts set up is a topic for another article. One benchmark that's becoming proven, however, is that a longer, more complex Perl script's execution time was reduced by 65% using mod_perl in place of CGI. These scripts give you the flexibility to define event-driven alerts and keep connections to databases while caching information between requests. The fact that mod_perl increases system performance so well shows that it's an ideal CGI replacement for order capture, order management, and eCommerce applications.