Old problem with performance

Weed resume755 at mail.ru
Thu Feb 19 03:10:31 PST 2009


What is the result of the discussion?

Will the language change? Not once, could in 6-12 months?..

For me, the answer to that question was tantamount to answering the
question "whether or not to use D for new projects?"


Weed пишет:
> (Has started here:
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=81359)
> 
> To me still does not give rest performance of classes (in comparison
> with C++ or with D structs)
> 
> I still think that it is a serious problem.
> 
> Colleagues from our national D forum have asked to show it and I have
> written simple examples on D. I want to share with you too them.
> 
> On my computer the code with structure (i.e. object by value) runs in 6
> times faster than a code with a class:
> 
> $ time ./struct
> 
> real    0m8.515s
> user    0m7.796s
> sys     0m0.016s
> $ time ./class
> 
> real    0m52.185s
> user    0m40.543s
> sys     0m0.076s

[...]



More information about the Digitalmars-d mailing list