memset and related things

language_fan foo at bar.com.invalid
Mon Sep 21 00:53:43 PDT 2009


Sun, 20 Sep 2009 18:16:37 -0400, bearophile thusly wrote:

> My benchmarks aren't chosen randomly, I naturally focus on things that
> are slower in D, so sometimes you can see Java to "win". I usually
> discard the code where Java results slower :-)

I have seen people many times mention that Java is in general orders of 
magnitude slower than D, no matter what kind of algorithms you run on 
both environments. This is because of the VM - nothing on a VM can run 
faster than native code, they say. If you decide to hide the bad results 
(for D), it will only reinforce the misinformation. I personally use a 
lot of heap memory allocation in my work, and so far Java has not only 
been safer (and provides decent stack traces and no compiler bugs), but 
also faster - each time.



More information about the Digitalmars-d mailing list