in reply to memory usage Spreadsheet::ParseExcel
It's a known issue that S::PE objects have cyclic references, so objects never get completely freed. The simplest solution is to create each object in a separate process (i.e. fork, create object, process, end child process). The other issue of parsing the entire document to memory as you've found is solved by using the CellHandler and NotSetCell attributes (or with Spreadsheet::ParseExcel::Stream), but it is not guaranteed that the cells are parsed "in order." They seem to be parsed in order when the spreadsheet is created by Excel, but not, e.g., when the spreadsheet is created by Spreadsheet::WriteExcel without using 'compatibility_mode' and the rows/cells are written out of order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: memory usage Spreadsheet::ParseExcel
by Anonymous Monk on May 14, 2012 at 11:34 UTC | |
by runrig (Abbot) on May 21, 2012 at 02:18 UTC |