Discussion:
A question about CASE OF
Add Reply
Ched
2017-07-02 19:43:20 UTC
Reply
Permalink
Raw Message
Hello All,

Just... one question.

Are the items in the CASE OF statement tested linearly until one test reveals true (or if none, execute
the else condition if any) or there is some mechanism of localization like in a sorted binary tree.
Linearly: the item with a high probability are to be specified in first places.
By tree, much faster for nearly same-probability items.

Can the compiler manage the tree version or have I to hardcode a tree of cascaded IF THEN ELSE ? If so,
how much levels can I develop in this cascade ?

Cheers, Ched'
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/

Loading...