Is D slow?
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 10 07:14:53 PDT 2017
On Saturday, 10 June 2017 at 13:43:48 UTC, Nicholas Wilson wrote:
> On Saturday, 10 June 2017 at 12:44:07 UTC, Honey wrote:
>> On Saturday, 10 June 2017 at 12:23:05 UTC, Nicholas Wilson
>> wrote:
>>> [...]
>>
>> Are you saying that introducing additional checks enables the
>> optimizer to eliminate more or more costly checks than it
>> could without introducing those additional checks in the first
>> place? Can you give an example?
>
> My bad I misread the original quote, misread that as
> performance increase.
> turning bounds checks off should always result in faster code.
I can confirm on my system, ldc with bounds check off was at
least twice as slow as with just -release.
Definitely seems like a bug
-Steve
More information about the Digitalmars-d-learn
mailing list