-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
SetCellValue() and MergeCell() are very slowly when populate 10,000 rows #1349
Comments
The |
The problem is resolved in the latest version of the releaseI propose a temporary but very effective solution to this problem. Note that you need to pass a non-zero Remember that you can use the It is also worth noting that such a problem does not exist when using |
Description
SetCellValue() and MergeCell() are very slowly when populate a large number of cells if style value is bigger than 0
Describe the results you received:
when SetCellValue() or MergeCell() is called, the prepareCellStyle() method will loop all rows in sheet everytime. So when populate a large number of cells about 450,000 cells that there are 10,000 rows, the span time is very very long.
Describe the results you expected:
prepareCellStyle() need return the style value directly if parameter "style" is bigger than 0.
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: