Better slicing

Lionello Lunesu lio at remove.lunesu.com
Fri Mar 10 03:33:17 PST 2006


>> To reverse an array is a costly operation, and it would not be a good 
>> idea to hide it behind a fancy operator, it will hide the penalty.
>
> Reversing arrays doesn't have to be expensive if you have strided array 
> references. (By this, I'm not suggesting that D should make simple 1-D 
> dynamic arrays strided.)

How does striding improve a reverse on a 1-D array?

>
> (Sorry for reversing the top-posting.)

No problem, it makes more sense  :)

L. 





More information about the Digitalmars-d mailing list