Whenever I run composer update
the 'Generating autoload files' part always takes forever (sometimes up to 2 full minutes). I've ran it with the --profile
flag to pinpoint this issue.
I've read multiple articles on it, but I still can't understand why it takes this long on my projects, and if it's even useful for my projects?
I'm running into this whenever I'm deploying changes live, and I want that deployment to be as fast as possible.
I've tried to run it with --no-dev
flag, but that doesn't change anything.
So my question is, why would autoloading take so long (and how could I improve its speed)?