Help to improve speed

Walter Bright newshound1 at digitalmars.com
Mon Jun 9 13:07:05 PDT 2008


Jacob Carlborg wrote:
> I have an application that maps numbers to words from a list of words 
> written in Ruby. I've ported the application to D and it's terrible slow 
>  and I don't know why. With a file of around 60 000 words and a file 
> with around 25 000 numbers the Ruby application takes around 3 seconds 
> and my D port takes around 209 seconds to finish. It's probably not well 
> coded, I just tried to port it but over 200 seconds longer doesn't feel 
> right.

Perhaps the D profiler can help:

   http://www.digitalmars.com/ctg/trace.html

Also, using the D coverage analyzer can help:

 
http://dobbscodetalk.com/index.php?option=com_myblog&show=Coverage-Analysis.html&Itemid=29






More information about the Digitalmars-d mailing list