Good project: stride() with constant stride value

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 4 15:33:59 PST 2016


On 03/04/2016 04:19 PM, Meta wrote:
> On Friday, 4 March 2016 at 20:14:41 UTC, Andrei Alexandrescu wrote:
>> This is just speculation. When the stride is passed to larger
>> functions the value of the stride is long lost.
>>
>> I understand the desire for nice and simple code but sadly the stdlib
>> is not a good place for it - everything must be tightly optimized. The
>> value of the project stands. -- Andrei
>
> It's easy to implement but isn't this an optimization that LDC/GDC would
> already do if the stride is known at compile time?

Not generally, no. -- Andrei



More information about the Digitalmars-d mailing list