Comment by panstromek

Comment by panstromek 17 hours ago

1 reply

I feel like you either flipped the naming or the reasons you cite don't support the conclusion.

Pushing ifs down usually prevents vectorization and the cases article mentions are those non-dry where a similar branch has to be multiplied on a ton of functions down in the stack, often because the type is internally tagged.

coolcase 16 hours ago

3rd opinion: don't care until you have a performance issue to profile. Or you are building a high frequency trading system.