Why is D slower than LuaJIT?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Dec 23 08:37:11 PST 2010


On 12/23/10 10:14 AM, Simen kjaeraas wrote:
> Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
>
>> http://www.dsource.org/projects/phobos/changeset/2231
>
> BTW, shouldn't range constructors call .save for forward ranges? This
> one certainly doesn't.

Currently higher-order ranges assume that the range passed-in is good to 
take ownership of. A range or algorithm should call save only in case 
extra copies need to be created.

Andrei


More information about the Digitalmars-d mailing list