-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature/optimizations #89
Conversation
and make it a global variable like in "processors.py".
I'm not sure I see the point of the optimisation to be honest. Beyond your personal style changes the code seems identical? |
A little bit of speed didn't hurt anyone and since the optimizations didn't require any radical changes, I implemented them. As you've mentioned, the code is practically the same, just a bit faster (~2% for my files and hardware & software setup). |
I'm honestly not a big fan of the With regards to performance however, are you processing large enough files for that to be relevant? I have hardly looked at performance with this library because there hasn't been much need for it, but I'm sure I can greatly improve the performance with little effort if it is problematic that is. |
imaplib from the standard library has both Parsing takes less than a minute for me, so it's bearable, but of course I wouldn't mind if it would take less. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Unfortunately the standard library isn't always the best example of pretty/Pythonic code. Take a look at the I try to follow PEP 20 in that regard: https://www.python.org/dev/peps/pep-0020/ |
A couple of optimizations.