I do not know, but from my experience it is good at it. I have done many
benchmarks for plenty of code, and in recent D compilers -boundscheck=off
does not improve speed. To be fair using -boundscheck=off make D code
slower in many cases, which is wierd but true.

On Fri, Mar 2, 2018 at 8:48 AM, Nathan S. via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:

> On Thursday, 1 March 2018 at 21:01:08 UTC, Steven Schveighoffer wrote:
>> Yeah, it seems like -noboundscheck should never be used.
> How good is DMD at omitting redundant bounds checks? I assume not much
> engineering effort has been put towards that due to "-boundscheck=off"
> being available.

Reply via email to