http://d.puremagic.com/issues/show_bug.cgi?id=7488

           Summary: Short array optimization for std.bitmanip.BitArray
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-02-12 11:59:28 PST ---
An optimization for std.bitmanip.BitArray: when BitArray.length <=
(size_t.sizeof * 8), then BitArray.ptr stores the bit themselves (so ptr is in
a union with a size_t).

If the array of bits is short, this saves a GC allocation, increasing
performance and reducing the amount of memory used and garbage produced.

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

Reply via email to