When I use the AssistedInject to generate a factory class automatically, object creation takes a significantly longer time than hand-coding the factory. My test involves creating 10,000 objects in a loop. With the FactoryProvider.newFactory in my binding, it takes 7ms to run the test. If I replace the binding with my own factory class (which is a singleton), the test runs in 0.2ms.
Has anyone else run into this? Any ideas why it's so much slower? I'm not happy about having to hand-code all the factories. Thanks. -- 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.
