Slow performance compared to C++, ideas?

Kiith-Sa kiithsacmp at gmail.com
Thu May 30 21:27:34 PDT 2013


Profile.

Don't even think of asking for help before profiling. Those bugs 
you fixed here would be trivial to detect with a profiler. 
GC-dependent stuff usually is (like array literals mentioned 
here) usually are.

As for profiling of something like this, both gprof and DMD's 
builtin profiler are probably going to be useless. Use perf (if 
on Linux), or AMD CodeAnalyst, or some other sampling profiler 
(these two are free).


More information about the Digitalmars-d mailing list