Arbitrary Size Integer Arrays

BCS none at anon.com
Thu Sep 24 08:33:37 PDT 2009


Hello Walter,

> Don wrote:
> 
>> If you provide slice access (eg, give me elements [a..b] as an array
>> of ints) then you can have reasonable performance. Unpacking
>> consecutive elements can be done quite efficiently (it's an
>> interesting optimisation problem, though!).
>> 
> It wouldn't be slicable because a slice would have to start at the
> beginning of a byte. The D bit type died in that quagmire.
> 

It could be sliced if you are willing to play games like "element zero is 
N places after this memory address." At a minimum, Every 8th element will 
be byte aligned. 





More information about the Digitalmars-d mailing list