If it is too big to fit in memory... then you have to use the disk! The easiest to use is probably GDBM_File, which will let you tie the hash to a disk file (but you will need to serialize the values of the hash). You could also go for a full DBMS, DBD::SQLite is very convenient, as the DB is a single file. it is pretty fast too.
In any case you will need to rewrite your code, and it will probably take much longer to run, there is no miracle here!
In reply to Re: How to save memory, parsing a big file.
by mirod
in thread How to save memory, parsing a big file.
by idle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |