Comment

Comment by jesstaa

The trade off has changed over time as memory access has become a bigger and bigger bottleneck. But caring about this is still "premature optimisation".

The claim of 20x program performance difference is overblown. Compilers can often remove virtual function calls, JITs can also do it at runtime. Virtual function calls in a tight loop are slow but most of your program isn't in a tight loop and few programs have compute as a bottleneck.

Measure your program, find the tight loops in your program and optimise that small part of your program.

parent jesstaa 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton