std.algorithm.sort slower than C++'s std::sort for integer arrays

Stanislav Blinov stanislav.blinov at gmail.com
Thu Nov 8 14:45:21 UTC 2018


On Thursday, 8 November 2018 at 14:36:45 UTC, Atila Neves wrote:
> This I was not expecting:
>
> https://www.reddit.com/r/programming/comments/9v8ouc/an_overview_of_sorting_algorithms_and_a_pretty/e9ajt1o/

Could be the DRuntime and libC calls that are made by `swap`, 
`move*`, etc. Would need to look at the code and generated asm 
though.


More information about the Digitalmars-d mailing list