Reply To: Performance problems

Splash Forums Rewrite Users Performance problems Reply To: Performance problems

#26332

Sorry for my late reply.

Do, you don’t need any of the integration modules if you don’t need that kind of integration. It’s completely optional.

Thanks for sharing the screenshot. I think I’ve an idea why there are so many invocations of the ServiceLoader. It may be caused by this line of code:

https://github.com/ocpsoft/rewrite/blob/cd3d94419ca4a323c8f895317d742189025256a5/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/DispatchType.java#L48

So actually each instance Of DispaterType is loading SPI implementations from the ServiceLoader. There should actually be some kind of cache I think.

I’ll try to find some time in the next days to work on a patch for this issue.

However, even if there are so many invocations, I wonder why this leads to such a performance drop in your case. If you don’t use any of the integration modules, then loading the SPI files from the classpath seems to be slow for some reason.

Christian