On 24 Jul 2011, at 13:08, Hugo Visser <[email protected]> wrote: > Hi, > > I'm using Guice in an App Engine app and I'm trying to reduce some of > the start up delays for the initial request. > A fair amount of delay is the byte code generation that Guice does > when resolving the bindings. I was wondering if it 1. would make sense > and 2. would be possible to defer the byte code generation that is > happening in for example ProxyFactory and defer it to the point that > the binding is actually requested/used for injection.
Which version of Guice are you using at the moment? Guice 3 and trunk have an option to turn off the circular proxy support which might help: http://google-guice.googlecode.com/svn/tags/3.0/javadoc/com/google/inject/Binder.html#disableCircularProxies() and they should also generate fewer proxy classes than earlier releases Also do you use any AOP in your app? If not then you could try the no-AOP flavour of Guice which doesn't do any CGLIB bytecode enhancement -- Cheers, Stuart > Thanks, > > Hugo > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
