I'm using Blackfire to profile my PHP / Laravel application. Across most endpoints, Composer seems to be taking a long time. Specifically, the method Composer\Autoload\includeFile
. In the example below, it gets called 240 times.
Now I have run composer dump-autoload --optimize
and I have opcache
enabled. Is this behavior normal or is this indicative of an issue? My understanding would be that the autoloader should only need to be included once.
The autoloader's primary purpose is to load all the various classes in your application. As such, it's likely to call includeFile
many times in a single request.