[mercury-users] Memory consumption w/memoization
Kral Stefan
skral at mips.complang.tuwien.ac.at
Thu Sep 22 19:43:12 AEST 2005
Hi.
I use the builtin memoization in some tests that calculate
fibonacci with the GMP bindings I am currently developing.
However, if I calculate a sequence of several large values, say
fibonacci(30000000) and then
fibonacci(31000000) and then
fibonacci(34000000) and so forth,
the application runs out of memory.
Is there a way to limit the amount of memory used for the
memoization of a predicate?
(Or maybe a way to limit the number of solutions cached?)
Best Regards,
Stefan.
--
Stefan Kral http://www.complang.tuwien.ac.at/skral/
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list