Skip to content

Instantly share code, notes, and snippets.

@novasky-zz
Created August 27, 2015 17:49
Show Gist options
  • Save novasky-zz/4665e87c8c73d50afd09 to your computer and use it in GitHub Desktop.
Save novasky-zz/4665e87c8c73d50afd09 to your computer and use it in GitHub Desktop.
Composer: Optimize for production
Just a reminder, before deploying your code in production, don't forget to optimize the autoloader:
$ composer dump-autoload --optimize
This can also be used while installing packages with the --optimize-autoloader option. Without that optimization, you may notice a performance loss from 20 to 25%.
http://www.ricardclau.com/2013/03/apc-vs-zend-optimizer-benchmarks-with-symfony2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment