-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increased warm startup times in vLatest compared to v14 #13253
Comments
The same slow warm startup times are observed in 21.0.2 (see the results of the automated performance tests at the bottom of this report). |
I'm not sure what the |
Fusion has added quite a lot of steps to the webpack build slowing it down from what it was in v14 |
Also see work done for v19: #10281 |
Yep, that's true. The issue is indeed noticeable since v15+. And it would be great if we could improve it before the next LTS. |
And to clarify, the issue that I think that we should be mainly concerned with is the DX of someone migrating from V14 to the next LTS. |
The old issue was created by me.. I'm kinda used to it by now that V15+ needs twice the amount of time to "build".. but I would be happy to get the old speed back as well. |
Im having this issue too. Im trying to migrate a project with more than 4.3K java files from vaadin 8 to vaadin 21.0.2 and the webpack server just doesn't start. Im not able to see any frontend on the Browser after 12 min, when I decide to kill the process. It is an issue related to npm oder webpack? I also set the vaadin.whitelisted-packages prop for the package where the frontend logic will be. But my project is using java files for Flow and .ts files for Fusion. I have this error
|
@HLBp That's not really related to this issue. Looks more like a problem on the spring (boot) devtool side of things. You probably want to create a issue there, not here. |
@knoobie I just increased the maximum memory value by setting the |
@HLBp This sounds like a Spring(-boot) issue. Try starting with |
Now that we have some improvements for this coming with the Vite support, should we close this issue? |
Let's compare the startup times between vLatest and v14 before making a decision on closing the issue. |
Here is an updated report of the cold and warm startup times of the different versions: https://bender.vaadin.com/repository/download/DxTutorialStarter_BuildPerformanceTestsRunningInDevelopmentMode/326140:id/human-readable-report.html. |
@mshabarov, perhaps this issue can be closed after the startup improvements due to the pre-compiled bundle. |
@tarekoraby we need to reproduce and check. |
Description of the bug / feature
The average warm-startup times in latest versions of the framework (e.g. 21.0.1) are appreciably longer than in v14.x (approx. 50% longer).
Minimal reproducible example
Calculate warm-startup times for 14.6.9 and 21.0.1
Expected behavior
There is no significant difference in the warm-startup performance between Flow versions.
Actual behavior
21.0.1 is significantly slower (approx. 16 sec) compared to 14.6.9 (approx. 10 sec.) to warm start.
Versions:
The text was updated successfully, but these errors were encountered: