emplace, scope, enforce [Was: Re: Manual...]

Rory Mcguire rjmcguire at gm_no_ail.com
Wed Jul 21 12:48:47 PDT 2010


Andrei Alexandrescu wrote:

> Here's the code I used for testing:
> 


My timings with your code, I included the one without -inline because I 
havn't been using -inline in my other tests:

$ dmd -O -release -inline program1_2.d
$ time ./program1_2 

real	0m0.526s
user	0m0.520s
sys	0m0.000s
$ dmd -O -release program1_2.d
$ time ./program1_2 

real	0m0.820s
user	0m0.810s
sys	0m0.000s

and bearofiles with -inline:
$ time ./program1

real	0m2.267s
user	0m2.260s
sys	0m0.000s



Nice improvement...so is this in phobos or druntime yet? :D


More information about the Digitalmars-d mailing list