Worth pointing out that in a cloud-universe where instances are killed and
restarted, improving startup time is actually money on the table, since
work performed by guice at startup costs CPU time which most cloud vendors
charge for. Perhaps a trickle, but still a "good thing" to fix where Guice
(or any software) is doing unnecessary work.

On Tue Oct 14 2014 at 11:44:03 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
> <https://groups.google.com/d/msgid/google-guice/d0227e61-a0bd-40d9-b8db-3aabdc3be423%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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
> <https://groups.google.com/d/msgid/google-guice/B42840B2-CB67-4DD9-8A31-1D3F0A9DA417%40pontarelli.com?utm_medium=email&utm_source=footer>
> .
> 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
> <https://groups.google.com/d/msgid/google-guice/543D6EED.5050501%40gmx.ch?utm_medium=email&utm_source=footer>
> .
> 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/CAHsNDCS_nAsvy-gQtiP6gyOAjRbH0On13Htps9R1PrEhsUwjbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to