Meta programming in C++ can enable you to remove lots of runtime branching in your code at the cost binary size.