-noboundscheck

bearophile bearophileHUGS at lycos.com
Sun Aug 19 12:43:17 PDT 2012


Nvirjskly:

> is bounds checking really that expensive,

The D front-end is very dumb in this, as far as I know it makes 
no attempts to remove those tests where they can't fail. Walter 
believes such optimizations don't gain much.


> what other simple optimisations can I preform other than 
> -inline -O -noboundscheck?

Compiler options change across different compilers. What compiler 
are you using?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list