Four Ways to Dispatch a Runtime-Selected Strategy in C
Virtual vs CRTP vs std::variant vs function pointer: which C dispatch mechanism is fastest? Benchmarks, generated assembly, compile times, and a decision framework for the strategy pattern in...
shubhankar-gambhir.github.io