Is the following well defined and allowed?

Daniel Kozak kozzi11 at gmail.com
Fri Mar 2 08:36:46 UTC 2018


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 at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20180302/3b89c1b2/attachment.html>


More information about the Digitalmars-d mailing list