[Issue 11598] New: std.random.uniform could be faster for integrals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 24 19:52:31 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11598

           Summary: std.random.uniform could be faster for integrals
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: zshazz at gmail.com


--- Comment #0 from Chris Cain <zshazz at gmail.com> 2013-11-24 19:52:26 PST ---
(may be related to https://d.puremagic.com/issues/show_bug.cgi?id=10287 but
probably not)

std.random.uniform performs two division operations, but it's possible to make
a uniform random number using just one division operation. This change could
dramatically speed up every usage of uniform.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list