I currently have a command line tool that uses Guice and its extensions quite heavily.
After completing the functionality of the tool, I determined that the performance was non-standard, and began profiling with a simple hprof.
This indicates that simply creating an Injector is a significant performance problem. I generally do no real work in Modules and reserve computational intensive work for Providers ...
With that in mind, what are some general performance recommendations for Guice? Should I avoid using @AssistedInject and FactoryModuleBuilders? Avoid @Singletons if possible? Make sure all bindings are explicit and avoid JIT bindings?
I searched everything but can't find much addressing Guice's base performance other than those who say it very quickly.
source
share