theorchard / openpyxl

Other
58 stars 21 forks source link

openpyxl takes a long time to import #35

Closed crockeea closed 5 months ago

crockeea commented 1 year ago
import time
start = time.time()
import openpyxl
print("Importing openpyxl took %.1f seconds" % (time.time()-start))

This prints Importing openpyxl took 14.6 seconds. This makes the library unusable for my purposes. Also see https://stackoverflow.com/questions/63861114/why-does-importing-the-openpyxl-take-so-long.

crockeea commented 5 months ago

The main problem for me is that I was using a virtual environment on the Windows file system, but using Python in WSL. This dramatically degrades performance.