by Yash Sharma | Nov 19, 2025 Code optimization principles, when and where to optimize, profiling tools, local and global optimizations, register usage, caching, and locality of reference.