Performance of map!()

via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 24 04:55:41 PDT 2015


On Friday, 24 April 2015 at 11:33:48 UTC, John Colvin wrote:
> That is pretty much identical to the implementation of map, see 
> https://github.com/D-Programming-Language/phobos/blob/master/std/algorithm/iteration.d#L504
>
> The only difference is that you don't implement opSlice. 
> Perhaps slicing is particularly slow for your source range?

I suspect the cause is the current inability to inline across 
modules.


More information about the Digitalmars-d mailing list