std.algorithm.swap and memcpy

dsimcha dsimcha at yahoo.com
Mon Jul 6 07:16:03 PDT 2009


I saw in the changelog that std.algorithm.swap now uses memcpy because it's
faster than the old way.  Why is this?  If memcpy is faster, how come DMD
doesn't generate the same instructions for normal assignment?



More information about the Digitalmars-d mailing list