Suboptimal array copy in druntime?
Nicholas Wilson via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 16 04:25:15 PDT 2017
On Sunday, 16 April 2017 at 10:33:01 UTC, Stefan Koch wrote:
> On Sunday, 16 April 2017 at 10:08:22 UTC, Guillaume Chatelet
> wrote:
>> I was looking at the _d_arrayassign family functions in
>> druntime:
>> https://github.com/dlang/druntime/blob/master/src/rt/arrayassign.d#L47
>> https://github.com/dlang/druntime/blob/master/src/rt/arrayassign.d#L139
>>
>> [...]
>
> Nope.
> Those are valid points.
>
> Templatizing the code is the way to go.
Indeed. See also http://dconf.org/2017/talks/cojocaru.html
More information about the Digitalmars-d
mailing list