-
Notifications
You must be signed in to change notification settings - Fork 253
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
Performance hit on import Qt #8
Comments
import Qt
PyQt has this convenience feature that when you import I'm sure there is reference of it in the documentation, but couldn't find it just now. This was the closest thing I found. To solve this, I would rather find a way of only importing what the user actually imports. from Qt import QtWidgets
# Should not import QtCore, QtQuick.. etc. Alternatively if we test and make sure it actually does take longer, maybe it doesn't, in which case there's nothing to worry about. |
With current import PyQt4.Qt with import PyQt4.QtCore
import PyQt4.QtGui to avoid importing
|
Yes, importing it all at once has been the only way I haven't run into problems. Me thinks there is some magic happening on import of the PyQt modules. |
This thread is interesting and somewhat related to this issue: https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038019.html
|
This isn't solvable anymore, since 1.0, as we are explicitly importing every single member in order to map it correctly. Nor may it ever have needed a solution. |
Not sure what you meant here @mottosso
The text was updated successfully, but these errors were encountered: