-
Notifications
You must be signed in to change notification settings - Fork 936
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
autoload parsers for load-time speed and memory usage #815
Conversation
Looks like this does the trick: Current master:
With this patch:
Parsers are not loaded until they're needed. Great work! |
Fantastic! Waiting for tests to pass. Perhaps I can release this as a patch release to the 2.6 series. |
yeah that would be nice, afaik most things that use mail do generating On Wed, Oct 22, 2014 at 10:34 AM, Benjamin Fleischer <
|
If this doesn't load parsers until runtime, and my app needs the parser, does that mean that the lazy loading will ruin CoW advantages of eager loading? I mean, should people who use the parser and forking severs know that they should eagerly load? (Otherwise this could possibly increase memory usage) |
aren't we usually doing mail parsing in sidekiqs anyway? |
Yes balancing dev vs production needs is always problematic, We do mail parsing in resque with forks. On Wed, Feb 11, 2015 at 5:26 PM, Aaron Patterson notifications@github.com
|
|
but adding it to eager_load_paths would do the trick ? On Wed, Feb 11, 2015 at 5:32 PM, Aaron Patterson notifications@github.com
|
#812
@bf4
Risks