Hacker News new | ask | show | jobs
by haberman 6171 days ago
> Some others have also hinted at using an array of function pointers and indexing by switch variable.

Doing this explicitly makes no sense -- I'm pretty sure the compiler will compile the switch this way if its heuristics determine that it the fastest way.