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
