[fpc-devel] Case code pattern
Marco Borsari
borsa77 at libero.it
Mon Aug 13 17:40:33 CEST 2018
Il 13/08/2018 16:29, J. Gareth Moreton ha scritto:
> I haven't explored it too deeply myself, but from what I understand, a
> jump table is only generated if there are a large number of branches
> (over 50). If it's just a handful of branches, it simply subtracts
> values from the input corresponding to the differences between the case
> labels, and jumping to the next subtraction if there's a mismatch, or to
> the else block if it goes negative. I'm not sure what it does for
> strings though.
>
> Gareth aka. Kit
I see, I suspected the existence of a threshold value.
I am not interested in strings,
thank you, Marco
More information about the fpc-devel
mailing list