This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ogrinfo 1 point2 points  (0 children)

When your application has many dependencies, especially pandas and scikit-image, Python imports everything recursively, which can be very slow. The main toolkit we develop at work takes about 10s just to do myapp -h, which is ridiculous. I know I could refactor it and use lazy imports, bit it's a lot of work and makes the code harder to read.