Need for speed
Steven Schveighoffer
schveiguy at gmail.com
Thu Apr 1 19:53:11 UTC 2021
On 4/1/21 3:44 PM, ag0aep6g wrote:
> On 01.04.21 21:36, Steven Schveighoffer wrote:
>> On 4/1/21 3:27 PM, ag0aep6g wrote:
>>> On 01.04.21 21:00, Berni44 wrote:
>>>> ```
>>>> ldc2 -O3 -release -boundscheck=off -flto=full
>>>> -defaultlib=phobos2-ldc-lto,druntime-ldc-lto speed.d
>>>> ```
> [...]
>> Yes, but you can recommend `-boundscheck=safeonly`, which leaves it on
>> for @safe code.
> `-O -release` already does that, doesn't it?
Maybe, but I wasn't responding to that, just your statement not to
recommend -boundscheck=off. In any case, it wouldn't hurt, right?
I don't know what -O3 and -release do on ldc.
-Steve
More information about the Digitalmars-d-learn
mailing list