Writing high-performance code involves understanding which common performance tips are actually effective. The post discusses several common myths and realities regarding programming performance, including the cost of virtual function calls, the benefits of function inlining and compile-time polymorphism, and the complexities of auto-vectorization and memory usage. It emphasizes the importance of verifying performance claims through rigorous testing and the use of platform-specific optimizations.

12m read timeFrom jatinchowdhury18.medium.com
Post cover image
Table of contents
Programming Performance Myths vs. RealitiesMyth: “Virtual function calls are free/cheap”Reality: “Reading/writing local variables is faster than reading/writing member variables”Myth: “Auto-vectorization can match/beat explicit vectorization”Myth: “Memory is free/cheap”Reality: “Platform specificity is good”
2 Comments

Sort: