Help to improve speed
Jacob Carlborg
doobnet at gmail.com
Mon Jun 9 14:23:04 PDT 2008
Walter Bright wrote:
> 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
>
>
>
>
Of course I should have mentioned that I use gdc osx so that switches
won't work.
More information about the Digitalmars-d
mailing list