Latest

Thursday, July 6, 2017

Laravel / Blackfire - Composer including autoloader taking significant time

Asked by: djt


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.

Blackfire Screenshot 1 Blackfire Screenshot 2



Source

No comments:

Post a Comment

Adbox