This is just bloody stupid.

If you care about performance, you don't use OOP, you don't use if/else, you don't use switch{case}, what you do is you write the hot parts in assembler.

If you aren't writing it in assembler, you're writing slow code.

But that code is still not optimised until you've implemented it in an ASIC.

> If you aren't writing it in assembler, you're writing slow code.

Depends in part in how good you are at writing assembler.