Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a lot of rows containing merged cells slows down #2

Closed
fukasawah opened this issue Jul 22, 2020 · 1 comment
Closed

Loading a lot of rows containing merged cells slows down #2

fukasawah opened this issue Jul 22, 2020 · 1 comment

Comments

@fukasawah
Copy link

I gave it 10,000 rows of data, it became very slow.

But, Setting search_merged_cell: false will work.
It looks like it slows down in proportion to the number of merged cells.

I think the following code is being processed on a per Cell basis and is slow.

Sheet sheet = cell.getSheet();
int size = sheet.getNumMergedRegions();
for (int i = 0; i < size; i++) {
CellRangeAddress range = visitorValue.getSheet().getMergedRegion(i);

Test data and config.yml here. reports.zip

@hishidama
Copy link
Owner

In version 0.1.10, changed search_merged_cell false,true to none,linear_search,tree_search. (default: tree_search)
tree_search is faster than linear_search, but uses a lot of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants