Jump to content

Software optimization

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 209.157.137.xxx (talk) at 19:54, 25 October 2001. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Optimization of software is making it use less time or space to do the same thing. It's a very large topic and deserves a very large article, which I don't have time to write at present; some large and important aspects of optimization follow:

  • profiling to find critical parts of the software (and then optimizing those)
  • using a better algorithm or data structure
  • rewriting code in a lower-level language (C or assembly language are common choices)
  • memoization or caching
  • packed bit-fields

Some more specific tricks follow:

  • loop unrolling
  • loop combining
  • inlining of procedures