I wonder how fast we'd do

H. S. Teoh hsteoh at quickfur.ath.cx
Wed May 29 00:22:55 UTC 2019


On Tue, May 28, 2019 at 10:11:43AM -0700, Walter Bright via Digitalmars-d wrote:
> 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.

Does dmd unroll loops yet? That appears to be a major cause of
suboptimal codegen in dmd, last time I checked. Would be nice to improve
this.


T

-- 
Some ideas are so stupid that only intellectuals could believe them. -- George Orwell


More information about the Digitalmars-d mailing list