16 Feb
2018
16 Feb
'18
1:33 p.m.
On Fri, Feb 16, 2018, at 1:07 PM, Jörg wrote:
A word to speed benefit: Even if you have - let’s say - 128 case labels you would need only 7 IFs at runtime (with binary division). So, the benefit of having a jump table is rather small. Don’t get me wrong: numeric CASE is nice and syntactically pleasing, but how often do you need it?
About performance consideration: http://bernd-oppolzer.de/CaseStmts.pdf The figure on page 10 is very interesting