[Bench!][Mir] +54%..+185% performance boost for Mersenne Twister.

Joseph Rushton Wakeling via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 26 13:54:12 PST 2016


On Saturday, 26 November 2016 at 20:13:36 UTC, Andrei 
Alexandrescu wrote:
> Also I'm thinking of removing std.random's dependency on 
> druntime, e.g. by removing the uses of enforce. Thoughts?

There's no strong reason for those checks to be done via 
`enforce` except for a design decision that user input should be 
treated as external input.  The user is in complete control of 
those parameters, there's no reason they can't be `assert` checks.



More information about the Digitalmars-d mailing list