Category Optimization

This category covers a wide range of subjects related to performance, resource usage, and more than a little dogma.

Optimising is also known as: tuning, tweaking, and factoring.

This subject is related to refactoring in that it also concerns changing structure without changing behaviour. The main difference between optimising and refactoring is the target audience. Where refactoring targets the maintainer, optimising targets the computer. However, it is not a requirement that optimised code must be obscure.

This category includes:

When to optimise

How to optimise

Religious issues

Standard advice about optimization includes Not Yet, Optimize Later and Knuth stated that Premature Optimization is the root of all evil (which is where the dogma originates). It is assumed that people reading the optimization pages understand this already. Please, if you are contributing to these pages, resist the temptation to say Not Yet on every single one! This is a given. The optimization pages talk about the "how" of optimization, not the "why" or "when". Not Yet in this context is condescending and pointless. It also smacks of religious intolerance ;)

There is a gestatory attempt to describe some Optimization Patterns along the lines of Design Patterns - commonly-occurring techniques which apply to many problems of a given class.

Click the heading to see all the Category Optimization pages.


See original on c2.com