in reply to Re^3: Reducing the memory usage of Spreadsheet::ParseExcel
in thread Reducing the memory usage of Spreadsheet::ParseExcel
I've used Spreadsheet::ParseExcel::Stream instead of Spreadsheet::ParseExcel and it uses 1.0GB memory after parsing an xls-file with a single worksheet and 64772 rows and 120 columns. This is before I go through the parsed worksheets and rows.
Opening this in Excel (2007) seems to use only 230MB.
So even with this module, reading a somewhat large Excel file uses excessively large amounts of memory. Edit: The xls-file is 122MB.
Opening this in Excel (2007) seems to use only 230MB.
So even with this module, reading a somewhat large Excel file uses excessively large amounts of memory. Edit: The xls-file is 122MB.
results inprint("Before creating new Spreadsheet::ParseExcel::Stream:\n" . `free + -m`); my $ExcelParser = Spreadsheet::ParseExcel::Stream->new($FileName); print("After creating new Spreadsheet::ParseExcel::Stream:\n" . `free +-m`);
Before creating new Spreadsheet::ParseExcel::Stream: total used free shared buffers cac +hed Mem: 3011 1250 1761 0 2 +177 -/+ buffers/cache: 1071 1940 Swap: 956 177 779 After creating new Spreadsheet::ParseExcel::Stream: total used free shared buffers cac +hed Mem: 3011 2257 753 0 2 +177 -/+ buffers/cache: 2077 933 Swap: 956 177 779
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Reducing the memory usage of Spreadsheet::ParseExcel
by runrig (Abbot) on Jan 30, 2013 at 17:50 UTC | |
Re^5: Reducing the memory usage of Spreadsheet::ParseExcel
by Anonymous Monk on Jan 30, 2013 at 12:31 UTC | |
by Neighbour (Friar) on Jan 30, 2013 at 14:30 UTC | |
by Anonymous Monk on Jan 30, 2013 at 14:42 UTC |
In Section
Seekers of Perl Wisdom