-
Notifications
You must be signed in to change notification settings - Fork 43
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
Objects that do a database call in their init #484
Comments
Just realized that this whole approach isn't going to work at all. In any case here is the output that lead me to this conclusion:
Everywhere is the wrapper involved, which is the |
Plan 2: |
I have run the unit tests of dispersy and profiled them with yappi. I exported the output to callgrind format and exported this into a dotfile using
gprof2dot
.Using this code I parsed the dotfile to find inits that call the database eventually.
I noticed that a lot of database functions are not covered by the tests such as
executemany
. So this list is most definitely incomplete.Below the results from this run:
dispersy/database.py:database:250:DispersyDatabase.execute
dispersy/crypto.py:crypto:253:M2CryptoPK.__init__
dispersy/util.py:util:146:wrapper
edit: I think the code can be improved. Doing that now
The text was updated successfully, but these errors were encountered: