You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Mi...@continental-corporation.com on 2013/10/23 12:03:59 UTC
slow loading XSSFWorkbook constructor due to column size
Hello,
I've been experiencing slow loading times with the XSSFWorkbook
constructor,
the program gets stuck for over 5 minutes during its call and then returns
the created object succesfully.
The problem occurs even when the excel sheets are empty and I've traced
the cause as being resized columns above the WWH1 range.
According to visualVM, the following methods are where most of the time is
spent:
org.apache.xmlbeans.impl.store.Locale.count() 48.6%
org.apache.xmlbeans.impl.store.Xobj.find_element_user()
47.9%
I only want to read data from the xlsm and have no interest in column
widths.
Is there a way to configure apache.poi to ignore visual information during
the opening of the file?
Cu stima / Mit den besten Gruessen / Best regards,
Mihai Cristea
Re: slow loading XSSFWorkbook constructor due to column size
Posted by Mi...@continental-corporation.com.
I'm using poi 3.9 and after attaching the sources I have tracked the issue
to the ColumnHelper class,
more specifically, the cleanColumns method.
There's a for loop inside, which runs over all the columns, calling the
addCleanColIntoCalls method.
I do not know what these methods do as of yet, but running them over all
the columns of all the sheets
is unwanted behavior for my purposes.
I'll post here if I find out more.
From: Nick Burch <ap...@gagravarr.org>
To: POI Users List <us...@poi.apache.org>
Date: 10/23/2013 01:33 PM
Subject: Re: slow loading XSSFWorkbook constructor due to column
size
On Wed, 23 Oct 2013, Mihai.Cristea@continental-corporation.com wrote:
> I've been experiencing slow loading times with the XSSFWorkbook
> constructor, the program gets stuck for over 5 minutes during its call
> and then returns the created object succesfully.
Have you tried with the latest version of POI? There have been some fixes
of late for this sort of thing
> The problem occurs even when the excel sheets are empty and I've traced
> the cause as being resized columns above the WWH1 range.
> According to visualVM, the following methods are where most of the time
is
> spent:
> org.apache.xmlbeans.impl.store.Locale.count() 48.6%
> org.apache.xmlbeans.impl.store.Xobj.find_element_user()
> 47.9%
What in POI was calling xmlbeans? And what kinds of objects was xmlbeans
searching for?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: slow loading XSSFWorkbook constructor due to column size
Posted by Nick Burch <ap...@gagravarr.org>.
On Wed, 23 Oct 2013, Mihai.Cristea@continental-corporation.com wrote:
> I've been experiencing slow loading times with the XSSFWorkbook
> constructor, the program gets stuck for over 5 minutes during its call
> and then returns the created object succesfully.
Have you tried with the latest version of POI? There have been some fixes
of late for this sort of thing
> The problem occurs even when the excel sheets are empty and I've traced
> the cause as being resized columns above the WWH1 range.
> According to visualVM, the following methods are where most of the time is
> spent:
> org.apache.xmlbeans.impl.store.Locale.count() 48.6%
> org.apache.xmlbeans.impl.store.Xobj.find_element_user()
> 47.9%
What in POI was calling xmlbeans? And what kinds of objects was xmlbeans
searching for?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org