We remove assisted inject and multi bindings and noticed improvements as well.
-- Brian Sent from my iPhone > On Oct 14, 2014, at 11:43 AM, Stephan Classen <[email protected]> wrote: > > We used Guice3.0 in an library which analyzes SQLs sent to the DB. The first > version showed a heavy impact on execution time (queries were up to 4 times > slower). > We replaced almost all assisted inject with hand written factories and could > remove about half of the overhead. > > My finding is, that for a normal application Guice is fast enough. But for > time critical parts of the code which get executed often (+50 times per > request) there is a notable impact on speed. > > > >> On 10/14/2014 08:16 PM, Brian Pontarelli wrote: >> Prime MVC calls getInstance every request. This is great because all >> controllers are non-singletons and state doesn't get polluted. Though Guice >> is rarely the bottleneck for most apps. >> >> -- Brian >> >> Sent from my iPhone >> >> On Oct 14, 2014, at 10:59 AM, Kevin Burton <[email protected]> wrote: >> >>> OK.. silly question, why would this matter? >>> >>> The performance of Guice didn't seem pathologically broken. >>> >>> What I do is just create all my bindings at startup and then I'm done. Any >>> complex initialization is done via providers... >>> >>> So maybe I'm missing something and there are some use cases that people are >>> calling getInstance() in a more production or tight loop situation? >>> >>> Is this an anti-pattern or actually valuable? >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "google-guice" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/google-guice. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-guice/d0227e61-a0bd-40d9-b8db-3aabdc3be423%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-guice. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-guice/B42840B2-CB67-4DD9-8A31-1D3F0A9DA417%40pontarelli.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-guice/543D6EED.5050501%40gmx.ch. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/EB427FCE-2D48-4C5B-A010-D740BB292C86%40pontarelli.com. For more options, visit https://groups.google.com/d/optout.
