FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

D Performance

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
KaiGillmann



Joined: 17 Nov 2007
Posts: 2
Location: Fulda, Germany

PostPosted: Sat Nov 17, 2007 7:35 pm    Post subject: D Performance Reply with quote

Hi,

the whole day long i playd around with D. I am searching for a language as simple as Java but as powerful as C / C++ and i think D is / can be the one i am searching for.

I did an easy floating-point-test with C++, D and Java, with and without optimizations. C++ was the fastest one, then Java and the slowest was D.

I know floating point operations are not the only decision if a programming-language and / or compiler produces fast code and may be iam not a good tester but my Question is, what about the performance of D in future? will there be improvements?

Thanx for answer.

Kai
Back to top
View user's profile Send private message
ShprotX



Joined: 28 Aug 2007
Posts: 24
Location: Ukraine

PostPosted: Sun Nov 18, 2007 6:01 am    Post subject: Reply with quote

Take a look at the binary using disassembler and, maybe, you will understand why it happens.
IMHO, in the future productivity will increase through improved compiler.
Back to top
View user's profile Send private message
KaiGillmann



Joined: 17 Nov 2007
Posts: 2
Location: Fulda, Germany

PostPosted: Sun Nov 18, 2007 5:19 pm    Post subject: Reply with quote

Thanks much for the reply.
I will disassemble the binaries as soon as I have time to do it.
Does anyone have more information? I would be very grateful.

Thanks much.

Kai
Back to top
View user's profile Send private message
torhu



Joined: 30 Mar 2006
Posts: 56

PostPosted: Sun Nov 18, 2007 7:09 pm    Post subject: Reply with quote

It's hard to help without knowing exactly what you did. But you might try using GDC instead of DMD, as it optimizes better in some cases.
Back to top
View user's profile Send private message
Destructionator



Joined: 17 Sep 2007
Posts: 9
Location: New York State

PostPosted: Sun Nov 18, 2007 9:36 pm    Post subject: Reply with quote

Also, make sure you remember to pass the right flags to the D compiler to optimize. (dmd -O -release file.d)

If your code is small, would you mind posting it here, and the command lines you used to compile it, so we can see it for ourselves?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group