Tagged With: C/C++
Infographics: Operation Costs in CPU Clock Cycles, Take 2
June 19, 2026 by • “No Bugs” Bunny
Quote
The cost of thread context switch, including cache invalidation, can reach up to 3 million CPU cycles
Another Quote
RTTI can be quite expensive, with
dynamic_cast<>being up to 5x more expensive than a simple virtual function call
Filed under: On.ProgrammingOptimizations
On CPU Physics and CPU Cycles
June 10, 2026 by • “No Bugs” Bunny
Quote
as active portion of the stack is accessed extremely frequently, it is almost-guaranteed to be cached
Another Quote
main memory access latencies of an x64 desktop box, and an M4 Apple SoC happen to be in the same ballpark of about 200-300 CPU cycles
Filed under: On.ProgrammingProgramming Languages
Java vs C++: Trading UB for Semantic Memory Leaks (Same Problem, Different Punishment for Failure)
October 30, 2018 by • “No Bugs” Bunny
Filed under: On.ProgrammingProgramming Languages
Read moreC++: "model of the hardware" vs "model of the compiler"
October 3, 2018 by • “No Bugs” Bunny
Filed under: On.ProgrammingProgramming LanguagesOn.DevelopmentDevelopment Philosophy


