Program Optimization - General

General

Although the word "optimization" shares the same root as "optimal", it is rare for the process of optimization to produce a truly optimal system. The optimized system will typically only be optimal in one application or for one audience. One might reduce the amount of time that a program takes to perform some task at the price of making it consume more memory. In an application where memory space is at a premium, one might deliberately choose a slower algorithm in order to use less memory. Often there is no "one size fits all" design which works well in all cases, so engineers make trade-offs to optimize the attributes of greatest interest. Additionally, the effort required to make a piece of software completely optimal — incapable of any further improvement — is almost always more than is reasonable for the benefits that would be accrued; so the process of optimization may be halted before a completely optimal solution has been reached. Fortunately, it is often the case that the greatest improvements come early in the process.

Read more about this topic:  Program Optimization

Famous quotes containing the word general:

    The general feeling was, and for a long time remained, that one had several children in order to keep just a few. As late as the seventeenth century . . . people could not allow themselves to become too attached to something that was regarded as a probable loss. This is the reason for certain remarks which shock our present-day sensibility, such as Montaigne’s observation, “I have lost two or three children in their infancy, not without regret, but without great sorrow.”
    Philippe Ariés (20th century)

    Could anything be more indicative of a slight but general insanity than the aspect of the crowd on the streets of Chicago?
    Charles Horton Cooley (1864–1929)

    They make a great ado nowadays about hard times; but I think that ... this general failure, both private and public, is rather occasion for rejoicing, as reminding us whom we have at the helm,—that justice is always done. If our merchants did not most of them fail, and the banks too, my faith in the old laws of the world would be staggered.
    Henry David Thoreau (1817–1862)