Encouraging preliminary results implementing memcpy in D

baz b2.b2.b2.temp.temp.temp at gmx.gmx.gmx.com.com
Thu Jun 14 20:35:23 UTC 2018


On Thursday, 14 June 2018 at 17:27:27 UTC, Patrick Schluter wrote:
> On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote:
>> I had a little fun today kicking the crap out of C's memcpy 
>> with a D implementation.
>>
>> https://github.com/JinShil/memcpyD
>>
>> Request for help: I don't have a Linux system running on real 
>> hardware at this time, nor do I have a wide range of platforms 
>> and machines to test with.  If you'd like to help me with this 
>> potentially foolish endeavor, please run the program on your 
>> hardware and send me the results.
>>
>> Feedback, advise, and pull requests to improve the 
>> implementation are most welcome.
>>
>
>
> Just a little remark. Alignment has also an extremely heavy 
> impact on the performance of memcpy(). Does your test include 
> it?

I asked on IRC yesterday and actually tHose memcpy are not the 
memcpy we use to copy wide chunks, apparently it's rather for an 
internal druntime thing, i.e cpy type to type so likely always 
aligned.


More information about the Digitalmars-d-announce mailing list