Playing with Entity System, performance and D.

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 19 15:51:47 PDT 2017


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.


More information about the Digitalmars-d-learn mailing list