std.algorithm.copy could be better optimized

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 18 07:20:19 PDT 2013


On 6/18/13 8:56 AM, TommiT wrote:
> I added these two enhancement requests:
>
> 1) memmove optimization for std.algorithm.copy:
> http://d.puremagic.com/issues/show_bug.cgi?id=10402
>
> 2) memchr optimization for std.algorithm.find:
> http://d.puremagic.com/issues/show_bug.cgi?id=10403
>
> ...but I suspect they're just a tip of the ice berg.

You're on the right track. Specializing for types with certain traits is 
par for the course in generic programming.

Andrei


More information about the Digitalmars-d mailing list