[racket] Math - factorial.rkt, binomial.rkt and memoization

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Apr 9 08:13:24 EDT 2013

On Tue, Apr 9, 2013 at 2:02 PM, Laurent <laurent.orseau at gmail.com> wrote:

> But if you write all 10 cases, aren't the lists constructed anyway before
> calling `*'?
>

I'll leave the answer to someone who knows exactly how the compiler works.

Intuitively, I thought my case should be better, but measuring them gives
no appreciable difference,  so I don't know.  :)

(I didn't want to suggest that 10 cases are necessary. The right number
should be determined by experiment.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130409/680a1a58/attachment.html>

Posted on the users mailing list.