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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to