Hallo,

I have a expensive function, that is evaluated more than once with the
same arguments. To improve performance, I thought about saving already
calculated values in a cache and checking the the cache before running
the
expensive algorithm again.

Is there a way to hide the cache other than switching to a monadic
programming style
and pushing the cache state all around the whole programm. Especially
when having lots
of cache states for different expensive functions ?

The solution that I have found on the hugs pages with the pointer
equality isn't
working in my context.

Klemens

Reply via email to