in reply to mod_perl shared mem and autoviv

Here's an alternative: instead of importing the whole thing into memory, use MLDBM. It will require only minimal changes in your code, and should save buckets of RAM.

It's very hard to avoid modifying Perl data structures (and thus unsharing them). Just reading a numeric scalar in a string context causes a change in the memory structure for that scalar. You may not be able to fix it.

Replies are listed 'Best First'.
Re: Re: mod_perl shared mem and autoviv
by LetoX (Initiate) on Jul 19, 2002 at 07:33 UTC
    in my first version, i used mysql and even with optimized indices the generation took several minutes. thats the cause i put the structure into mem, now it gets the thing done in 5 seconds.
      MLDBM is not MySQL. Try it.