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.
Sorry, I meant 7 seconds (not ms) for the auto generated factory, and
0.2 seconds for the hand-coded one.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
Thanks for the reply, I will try switching to @AssistedInject and look
forward to getting the fix in the future.
To test this I created a simple junit test that loops 10k times and on
each iteration uses Guice (using assisted injection) to create an
object. At the end of the test it prints out the time to run. I was
then able to reconfigure my Guice module from the autogenerated
factory to use a hand-coded factory and re-run the test to see the
difference.
Cheers!
--
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/1QMiWgIdM3QJ.
AnnotationFactory class to read the list of fields directly. This makes the reflection class 20 times faster for us since it bypasses the invoke which is using the method.equals() call. It is not a generic solution but here's the Java code from ORMLite SVN repository."