A little of coordination for Rosettacode

safety0ff via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 30 23:12:10 PDT 2014


On Tuesday, 12 February 2013 at 01:07:35 UTC, bearophile wrote:
>
> In practice at the moment I am maintaining all the D entries of 
> Rosettacode.
>

I modified the Hamming numbers code in a personal exercise.
It now uses considerably less memory but is slower.

I've posted the code here in case it is of use: 
http://dpaste.dzfl.pl/3990023e5577

For a single n, n = 350_000_000:
Alternative version 2: 13.4s and ~5480 MB of ram
My code: 21s and ~74 MB of ram

Regards.


More information about the Digitalmars-d-learn mailing list