[Oberon] A CASE quiz
dsar at eml.cc
Fri Feb 16 13:33:59 CET 2018
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
More information about the Oberon