On C/C++ undefined behaviours

Walter Bright newshound2 at digitalmars.com
Sun Aug 22 13:57:56 PDT 2010


retard wrote:
> It appears that in XML parsing Java is actually 5..10 times faster than 
> D1/Phobos. Maybe D2/Phobos has finally fixed these issues.


D *enables* you to write fast code, but you have to know how to write fast code. 
The code won't be fast simply because you wrote it in D.

This also means if you merely translate a program from Java to D, don't expect 
it to necessarily run faster. You're going to need to refactor/reengineer it for 
speed. For example, replacing classes with value types.


More information about the Digitalmars-d mailing list