www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7488] New: Short array optimization for std.bitmanip.BitArray

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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: -------
Feb 12 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7488




PDT ---
See related 7487 and 7490

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