On 06/20/2017 12:42 AM, SrMordred wrote:
I took a deeper look into dub.
"--build=release" make almost all optimizations flags on, except noboundscheck. There is a "--build=release-nobounds" and with it, the numbers got a lot closer (checked on another pc so will not post the numbers now)

Note that -boundscheck=off undermines the @safe attribute. @safe code is no longer guaranteed to be memory safe.

Using .ptr to avoid bounds checking doesn't have that effect, because it's not @safe from the start.

Reply via email to