Summary: | POI 3.5 Memory and perfomance solution | ||
---|---|---|---|
Product: | POI | Reporter: | Jaydeep <nisharg> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adithya.neelavara |
Priority: | P2 | ||
Version: | 3.5-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Approch document, to give more infomation about solution. |
Description
Jaydeep
2009-11-16 04:05:08 UTC
Hi, Because of the size limitation DemoProject.zip can not be attached here. Please download it from forum entry. Jaydeep. Created attachment 24548 [details]
Approch document, to give more infomation about solution.
As I understood main idea is to use common classes(Cell, Sheet, Workbook) for HSSF and XSSF and use Mappers(or Writers) to save workbook into needed format. It will be suitable because parsing and saving HSSFWorkbook and XSSFWorkbook takes different memory and process resources. In addition it will good for evaluation. I created simle test with sheet that contains big number of formulas and run it with profiler. Test contains parsing of workbook and evaluaion of all formulas two times. Results: Step HSSF XSSF Parsing: 10735ms 19859ms The First Evaluation: 5046ms 18234ms The Second Evaluation: 485ms 922ms Methods of formula parsing(during the First Evaluation) and getting type of cell(during the Second Evaluation) takes most of time. Please do not randomly change priorities without offering useful input If this bug is critical to you, please submit patches that improve things, or get a budget to sponsor someone to code the patches Since 3.8-beta3, POI provides a low-memory footprint SXSSF API built on top of XSSF. See http://poi.apache.org/spreadsheet/index.html and http://poi.apache.org/spreadsheet/how-to.html#sxssf Yegor |