I wonder how fast we'd do

Walter Bright newshound2 at digitalmars.com
Tue May 28 17:11:43 UTC 2019


On 5/28/2019 2:49 AM, Atila Neves wrote:
> Much to my surprise, C, C++, D and Rust all had the same performance as each 
> other, independently of whether C++, D and Rust used ranges/algorithm/streams or 
> plain loops. All done with -O2, all LLVM.

I'm not surprised. First off, because of inlining, etc., all are transformed 
into a simple loop. Then, the auto-vectorizer does the rest.


More information about the Digitalmars-d mailing list