Performance Thumb Rules
- Cache variables: Storing frequently accessed data in memory can significantly improve performance by reducing the need to recalculate values.
 - Move max code out of loops: In order to enhance performance, it is important to minimize the amount of code within loops, especially repetitive calculations or function calls.
 - Factoring control statements: Refactoring control statements such as loops and conditionals can lead to more efficient code execution and better performance.
 - Use switch statements: Switch statements are often more efficient than nested if-else statements, especially when dealing with multiple conditional branches.
 
