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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use optimized xlsx reader #482

Merged

Conversation

arseniy-panfilov
Copy link
Contributor

I was wondering why it takes so long to import 4000 rows long xlsx file with only two columns, made some measurements and it turned out it takes around 150 second only to populate dataset. Found out there's optimized way for read-only mode in openpyxl.

So here's a little enhancement to make use of it. On my machine it reduced read time to 0.5 seconds for the same file so I thought it might be useful to others.

Unit test for it is already there, let me know if you want some performance reports or something (tbh I'm not sure how to "officially" prove performance boost 馃樁 ).

@bmihelac bmihelac merged commit 6989567 into django-import-export:master Jul 14, 2016
@bmihelac
Copy link
Member

Merged, thanks a lot!

@arseniy-panfilov arseniy-panfilov deleted the optimized_xlsx_import branch August 26, 2021 00:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants