-
Notifications
You must be signed in to change notification settings - Fork 936
Use symfony-clean-tags plugin to improve performance and resolve install/update errors #452
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
Conversation
…n-tags-composer-plugin to resolve autoloading errors.
That does look bad. Has anyone else used symfony-clean-tags? |
I haven't used rubenrua/symfony-clean-tags-composer-plugin yet. Wait and see what @zaporylie has to say. But if we use symfony-clean-tags-composer-plugin we should change the description in the README. When updating the core you might have to change the configuration (extra.symfony.require). I would prefer a preconfigured package that we can add to the composer update common. Nothing should break, if you keep using the old version of "composer-drupal-optimizations". It is just not as performant as the newer version would be. Because the lower version constraint is not updated yet. |
Sorry for a delay, been busy yesterday. And thank you @webflo for pinging me - I wasn't aware of this discussion (nor acquia/blt#3336 for that matter). I didn't have much time to look in depth into all mentioned issues but let me, at the very least, provide some background/feedback:
|
New release to Can this issue be closed now? |
thank you @zaporylie !! |
Fixes #439
Having
zaporylie/composer-drupal-optimizations
in the rootcomposer.json
appears to cause issues with autoloading classes in the correct place when using theinstallers
andcomposer-merge
plugins and also hard codes the symfony version constraint. Hard coding this constraint may cause issues when updating core and other dependent packages unlesszaporylie/composer-drupal-optimizations
is actively maintained. Swapping out composer-drupal-optimizations for the symfony-clean-tags-composer-plugin will allow for the same performance improvements without the additional maintenance and update issues. Benchmarks (below) show that this plugin might even perform slightly better.Changes proposed:
Use
rubenrua/symfony-clean-tags-composer-plugin
rather thanzaporylie/composer-drupal-optimizations
Steps to reproduce:
create a new drupal-project and atempt to update core or another package dependent on core. Observe the "Could not scan for classes" errors:
Benchmarks:
with zaporylie/composer-drupal-optimizations [240.5MB/6.11s]
drupal-project without optimization plugins [321.1MB/16.81s]
With rubenrua/symfony-clean-tags-composer-plugin [220.1MB/2.82s]