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

EmailSenderListener adds significant overhead #3396

Closed
schmittjoh opened this issue Feb 18, 2012 · 3 comments
Closed

EmailSenderListener adds significant overhead #3396

schmittjoh opened this issue Feb 18, 2012 · 3 comments
Labels

Comments

@schmittjoh
Copy link
Contributor

Right now, the EmailSenderListener seems to be executed on each request regardless of whether an email is being sent or not. In my case, this makes each request about 1 second slower.

@lsmith77
Copy link
Contributor

you mean EmailSenderListener ? i guess this listener should really be lazy registered only when an email is actually send. for this we would likely need to wrap the standard swift mailer, which might also help in making the entire service a bit more lazy loading in general to make it more feasible to inject the mailer into services without it causing a lot of overhead.

@schmittjoh
Copy link
Contributor Author

yes, EmailSenderListener. I don't think it's the initialization of the mailer service itself (though that should be avoided at best as well), but rather that a network connection with the server is being established even if there is no email to be sent.

@stof
Copy link
Member

stof commented Feb 19, 2012

Please open it in the appropriate issue tracker. SwiftmailerBundle is in its own repo now, and this does not affect 2.0

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

No branches or pull requests

3 participants