[Issue 20548] New: Use bit vector instead of bool[] in RandomCover when choices cannot be packed in a single word

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 31 06:06:15 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20548

          Issue ID: 20548
           Summary: Use bit vector instead of bool[] in RandomCover when
                    choices cannot be packed in a single word
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

RandomCover has had a non-allocating optimization for small sizes since PR
#6576 but for larger sizes still uses 1 byte per flag which can be improved.

--


More information about the Digitalmars-d-bugs mailing list