After the programmer is reasonably sure that the best algorithm is selected for the solutions management, code optimisation can start.
Optimisation can be automated by compilers or performed by programmers. Gains are usually limited for local optimisation, and larger for global optimisations. Usually, the most powerful optimisation is to find a superior algorithm.
Optimisation during code development using macros takes on different forms in different languages.
Optimisation can reduce readability and add code that is used only to improve the performance.
When to optimize knowledge management systems
Optimisation as with most customer service software may include finding a bottleneck, a critical part of the code that is the primary consumer of the needed resource - sometimes known as a hot spot.