-
Notifications
You must be signed in to change notification settings - Fork 167
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
PiT 24.5: prepare-frontend
and build-frontend
seems to scan classes multiple times
#19874
Comments
This was changed time ago, to make sure that DevModeInitializer and prepare-fronted behave the same to prevent excessive server restarts during development. Here's the PR #19011 |
We have to investigate if/how we can cache the scanning results for |
Here's the full picture for our build, 9 times at about 1200ms each that's noticeable in a build. Caching the scanning results can be done from maven, see https://github.com/ronmamo/reflections-maven/ for the example. [INFO] --- vaadin:24.4.12:configure (configure) @ ims --- |
Store ClassFinder instance in project context to reuse the same instance during maven execution. Fixes #19874
Store ClassFinder instance in project context to reuse the same instance during maven execution. Fixes #19874
Creates ClassFinder once per mojo execution, preventing eccessive and useless scans. Fixes #19874
Creates ClassFinder once per mojo execution, preventing eccessive and useless scans. Fixes #19874
Creates ClassFinder once per mojo execution, preventing eccessive and useless scans. Fixes #19874 Co-authored-by: Marco Collovati <[email protected]>
Description of the bug
prepare-frontend
andbuild-frontend
scan classes multiple times, and it probably causes wasting some seconds during the buildExpected behavior
classes are visited once per goal
Minimal reproducible example
Download and compile bakery-app-starter-flow-spring
Versions
The text was updated successfully, but these errors were encountered: