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

Import is slow #67

Open
ynop opened this issue Oct 17, 2018 · 2 comments
Open

Import is slow #67

ynop opened this issue Oct 17, 2018 · 2 comments

Comments

@ynop
Copy link
Owner

ynop commented Oct 17, 2018

import audiomate

The import takes some time.
Check what causes this and probably only import some dependencies when needed.

@aahlenst
Copy link
Collaborator

Some numbers would be great so that we have something to compare to.

@ynop
Copy link
Owner Author

ynop commented Oct 18, 2018

>>> def x():
...     import audiomate
...
>>> timeit.timeit(x)
7.001230426132679
>>>

In a fresh environment, it always takes around 6-8 seconds. Not that severe, but sucks when you startup interactive python to check something with the library.

In comparison pytorch takes less than 2.

>>> def y():
...     import torch
...
>>> timeit.timeit(y)
1.4896932486444712

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

No branches or pull requests

2 participants