On 12/16/2013 4:01 PM, "Ola Fosheim Grøstad" <[email protected]>" wrote:
When I think of it, it might be better to let the compiler detect it and do this
as a general optimization. Because you might be able to collapse two consecutive
among() into a single lookup if the code-structure allows for it. So an early
library optimization could reduce the ability to optimize at a later stage… 
*shrug*

It definitely is a good idea for the compiler to recognize:

   if (s == "foo" || s == "bar" || s == "baz")

and generate special code for it.

Reply via email to