Section 8. Performance


Performance measurement and tuning could eat up an entire book by itself. Modern performance measurement involves statistical analysis, experimental design, and some simulation. It's heavy stuff but usually you only need a few quick techniques to get started.

Zed Sez

The recommendations in this section are not to be taken as rules you apply blindly. Computer geeks are notorious for hearing a rule and then processing it as "the truth" forever until the heat-death of the universe. I remember working with many Java programmers who would still convert all Strings to StringBuffers even years after Sun fixed the JVM so strings weren't a performance problem. Convincing them this wasn't necessary was impossible. They read it once and it was truth. Nobody could ever change that.

Always question and measure every new deployment. Don't assume that the tricks you used yesterday or even for the last version give you the same performance. Without measurements backing up your assumptions, you might as well divine your server configuration from a coil of sheep entrails (http://en.wikipedia.org/wiki/Extispicy).





Mongrel. Serving, Deploying, and Extending Your Ruby Applications
Mongrel. Serving, Deploying, and Extending Your Ruby Applications
ISBN: 9812836357
EAN: N/A
Year: 2006
Pages: 48

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net