whelp, here's an attempt at making a very hot switch faster; no idea if it works yet, finding the function to test in the first place is the hard part
a couple of fixes, and a test; looks like this algorithm isn't any better
try another fast member function; closer, but still not better
yet another fast member function; simpler, but not fast enough
another candidate fast member function
same basic idea as previous, but trading the |3 for a larger jump table
and here's the logical extreme, a much larger jump table in exchange for no ops that take over 1 cpu cycle; like previous attempts, needs some serious benchmarking to check actual perf at runtime
better, generally, to put this check after everything else
deadend; removing fast member stuff