What is the optimization of the program?

The program optimization is the process of modifying the computer program in a way that causes the program to perform faster, consumes fewer resources, or generally works with a higher efficiency level. The optimization task can be performed automatically by some programming language compilers, intentionally using an optimization program, or manually programmers who go through the source code and try to make specific improvements. Generally, the program is optimized with respect to a specific end, because there are very few general optimization that can be done in a program that does not somehow reduce the optimized state of another part of the program, which means that the program can usually be optimized for speed or use of resources, but usually not. One complication that may occur with some types of optimization is that many high -level programming languages ​​provide such a large level of abstraction between native code and computer language that can be optimized or nEmotion implement across all platforms in all situations, especially with interpreted languages ​​that use compilation of Jit-in-Time (JIT).

The important concept of program optimization is the idea that optimization usually comes with a price. One example is that when a piece of code is optimized to run faster, increasing speed could achieve the price of code readability, memory use, program flexibility or many other costs. This means that the optimization of the program must be a targeted process, with the intention for one aspect of the program to function in a better way and at the same time willing to sacrifice the efficiency of other aspects.

different types of program optimization can be performed at different stages of program development. During the design, a wide optimization can be done by ensuring that the program seems to run efficiently. When you work with a real source code can optimize the securityOutline of any foreign commands, repeating calls or poorly written functions. In compilation, the compiler is automatically performed by many optimization and can be controlled using different switches or compiler guidelines by a programmer.

Automatic optimization, as can occur with a compiler program or optimize determination, can often include tricks that are too complex for human programmers to be practical. This may include moving instructions in the program to make a line originally written, but more efficient for the processor. It may also include deliberately moving resources such as memory blocks so that they can be approached faster. Most program optimization occurs automatically at the compiler level.

One complication with repeated or aggressive program optimization is that once the program is modified to run more efficiently, it generally becomes more difficult for editing for other purposes, such as adding functionality or correction of errors.This can happen when optimization begins to block in the SET environment program that easily changes or adapts to the new code without required to be returned to all optimization. A major problem is that in many cases the optimized program becomes a less readable person, because instead of only brief commands and classic control structures, tricks and abbreviations are used. For these reasons, there is often a level of optimization of the program in which it is acceptable to stop, although drastic code adjustments could ensure that the program works slightly more efficiently.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?