Skip to content

Comment on Never trust a programmer who says he knows C++parent

Comments

That is only a problem if and only if that method is being called in a very tight loop and its body is not particularly time consuming. A person making optimisations like this without first timing the code or at the very least spending some time introspecting on the pros and cons of doing so would not be someone I wanted to work with!

Tell that to someone writing a PlayStation 2 game. Using virtual functions without thinking will kill performance on that machine.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.