in reply to Re: memory usage Spreadsheet::ParseExcel
in thread memory usage Spreadsheet::ParseExcel
Thanks for the input. Spreadsheet::ParseExcel is a good module and gets the job done. Thanks for that, too.
For those that follow, I experimented writing to a DBM:: Deep but is slow while DBI->connect is faster when AutoCommit => 0 but that uses memory, too.
The strategy that I followed was to write files of sheet cells in the cell_handler and then read these into a hash to get the cells row and column sequential. A 131MB xls parse and the sheet hash would fit into 4GB of memory, barely. Now if the xls is much bigger or the sheets are much bigger, I will have to fork the parsing to a separate child process in order to free up the memory used by the parser. A 131MB xls consisting of one sheet ain't going to fit in 4GB in one process.
Now the simplest solution is to increase the computers available core and fight the out of memory battle with $27. But alas, the liberals and the marxists in the Whitehouse have gotten this economy so screwed up with dreams of green energy that I cannot afford buying a new computer (mine is at its 4GB limit) and pay for food,shelter,clothing, and taxes. I will of course proceed to proceed!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: memory usage Spreadsheet::ParseExcel
by runrig (Abbot) on May 21, 2012 at 02:18 UTC |