Skip to content

lcatlett/composer-drupal-optimizations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimize Composer for Drupal 8.5+ projects

Build Status Packagist

About

This composer-plugin contains set of improvements that makes running heavy duty composer commands (i.e. composer update or composer require) much faster.

Installation

composer require zaporylie/composer-drupal-optimizations:^1.0

No configuration required 🎊

Optimizations

  • Reduce memory usage and CPU usage by removing legacy symfony tags (see also symfony/flex#378)

(only one at the moment)

Benchmark

Following numbers are for clean https://github.com/drupal-composer/drupal-project/ without and with this plugin.

Before:

Memory usage: 304.16MB (peak: 876.79MB), time: 17.13s

After:

Memory usage: 218.72MB (peak: 250.44MB), time: 4.83s

Credits

  • Symfony community - idea and development; Special thanks to @nicolas-grekas
  • Jakub Piasecki - port and maintenance

About

Saves memory and CPU cycles when you run `composer update`

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%