You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spring application start up time has increased with 24.4 compared to 24.3 when using Hilla and Copilot. It's increased even when not actually using Hilla. Just having dependencies in the classpath is enough to slow down startup time and also reload time.
Describe the solution you'd like
Speed up startup time and reload time of Vaadin 24.4 Spring application. More information on how to do that in #18812.
Proposed solution is to add following in the VaadinServletContextInitializer#CustomResourceLoader to filter jars that are not needed to be read file-by-file by the class scanner:
Filter "com/vaadin/hilla" and "com/vaadin/copilot" packages by default from the class scanner in VaadinServletContextInitializer and include only what is really needed: com.vaadin.copilot.CopilotIndexHtmlLoader, com.vaadin.copilot.CopilotLoader and com.vaadin.hilla.startup. This speeds up mostly reload time and also startup time a bit.
Related-to: #19112
Filter "com/vaadin/hilla" and "com/vaadin/copilot" packages by default from the class scanner in VaadinServletContextInitializer and include only what is really needed: com.vaadin.copilot.startup and com.vaadin.hilla.startup. This speeds up mostly reload time and also startup time a bit.
Related-to: #19112
Describe your motivation
Spring application start up time has increased with 24.4 compared to 24.3 when using Hilla and Copilot. It's increased even when not actually using Hilla. Just having dependencies in the classpath is enough to slow down startup time and also reload time.
Describe the solution you'd like
Speed up startup time and reload time of Vaadin 24.4 Spring application. More information on how to do that in #18812.
Proposed solution is to add following in the
VaadinServletContextInitializer#CustomResourceLoader
to filter jars that are not needed to be read file-by-file by the class scanner:Describe alternatives you've considered
Just excluding Hilla dependencies speeds up start time, but not to the same level as with 24.3.
Additional context
#18812
The text was updated successfully, but these errors were encountered: