Suboptimal array copy in druntime?

Guillaume Chatelet via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 16 04:58:11 PDT 2017


On Sunday, 16 April 2017 at 11:25:15 UTC, Nicholas Wilson wrote:
> 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

Sweet! Glad to see this is being worked on :)


More information about the Digitalmars-d mailing list