[Haskell-cafe] Solving a geometry problem with Haskell

Henning Thielemann lemming at henning-thielemann.de
Sat Jan 12 16:54:08 EST 2008


On Sat, 12 Jan 2008, Hugh Perkins wrote:

> On Jan 12, 2008 10:19 PM, Rafael Almeida <almeidaraf at gmail.com> wrote:
> > After some profiling I found out that about 94% of the execution time is
> > spent in the ``isPerfectSquare'' function.
>
> I guess that Haskell's referential transparence means the answers to
> the isPerfectSquare will be cached, ie automatically memoized? (not
> sure if is correct term?)

http://www.haskell.org/haskellwiki/Memoization


More information about the Haskell-Cafe mailing list