elusion has asked for the wisdom of the Perl Monks concerning the following question:
In my quest to more fully understand math and perl, I've created a program that goes through an infinite loop of numbers (that gets bigger each time) and it does some stuff to it using prime numbers. I'm hoping to speed this up using the module memoize. It's a lot faster, I've already tested it. It makes some calls to the sub prime each time through the loop, so I memoized it. Right now the number's in the 9_000_000's. It goes through about 50 numbers a second.
The question is: How long will it take before my computer's memory is full? or How often should I flush the cache? The last thing I want is for my computer to crash from memory. Thanks for the help,
- p u n k k i d
"Reality is merely an illusion,
albeit a very persistent one."
-Albert Einstein
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: How often should I flush?
by tilly (Archbishop) on Feb 20, 2001 at 08:26 UTC | |
|
Re: How often should I flush?
by AgentM (Curate) on Feb 20, 2001 at 05:50 UTC | |
by elusion (Curate) on Feb 20, 2001 at 06:04 UTC | |
by jptxs (Curate) on Feb 20, 2001 at 08:12 UTC | |
|
Re: How often should I flush?
by mothra (Hermit) on Feb 20, 2001 at 19:26 UTC | |
by ichimunki (Priest) on Feb 20, 2001 at 20:54 UTC |