Slow performance compared to C++, ideas?

Rob T alanb at ucora.com
Thu May 30 19:13:35 PDT 2013


I don't know if this is the case with the code in question (I 
have not looked at it), but sometimes there will be a significant 
effect on performance caused by the use of the garbage collector. 
This is an area in need of radical improvements.

You have to minimize situations where there's a lot of 
allocations going on while the GC is enabled because that will 
fire up the GC more often than is required and it can slow down 
your app significantly; A 2x or more performance penalty is 
certainly possible. It can also make performance unpredictable 
with large delays at inappropriate points in the execution.

BTW, you should post questions like this into d.learn rather than 
in the general discussion area.

--rt


More information about the Digitalmars-d mailing list