Performance Improvement
Once you have identified which region of code is "hot", can improve the performance of this code:
- change the algorithm and/or data-structures
- may give orders-of-magnitude better performance
- but it is extremely costly to rebuild the system
- use simple efficiency tricks to reduce costs
- may improve performance by one order-of-magnitude
- use the compiler's optimization switches (
gcc -O )
- may improve performance by one order-of-magnitude
|