Memoize and other optimization.

David d at dav1d.de
Mon Aug 20 13:05:48 PDT 2012


Am 20.08.2012 15:26, schrieb Philippe Sigaud:
> On Fri, Aug 17, 2012 at 4:27 PM, David <d at dav1d.de> wrote:
>> Am 17.08.2012 11:45, schrieb David:
>> For anyone interested:
>>
>> Memoize       No memoize (3000 runs with std.datetime.benchmark)
>> 0.000401645 - 0.00666028
>
> I'm quite interested with these results, as I'm also trying to memoize
> some code instead of recomputing everything. So in your case it's a
> direct *15 times faster, right?
>

Yes, 16.5 times, but I passed a maxSize of 16 (the function can only 
produce 16 different results), not sure which impact that has.


More information about the Digitalmars-d-learn mailing list