When using SS UserModel to parse xls files, whats the difference in performance compared to HSSF?
When using SS UserModel to parse xls files, whats the difference in performance compared
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For .xls files, there is no performance difference between the HSSF UserModel and SS UserModel. That’s because the SS UserModel for HSSF is largely just some very clever retrofitted interfaces around the existing code.
The performance with .xlsx files (either direct calls to XSSF, or transparently through SS) is slower and more memory intensive than HSSF. The .xls file format is a binary one, .xlsx is an XML based one (a zip of XML files). Writing the code to process the XML is simpler, which is a good thing! However, the overhead of the xml parsing means that more memory is needed, and it’s slightly slower.