Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Have you found performance to degrade significantly when many modules? I am working on a large project which may ultimately have several dozen modules; currently at 8, we're experiencing a noticeable lag before getting results. I ran some quick time tests:
Starting with a fresh installation of laravel on homestead, phpunit finishes in about 2.5 seconds on my machine.
The more modules we have, the slower the artisan command runs:
Once finished, running phpunit takes 14.5 seconds, still for the same two tests.
In a browser (wget), we go from 0.733 to 6.854s to respond with the welcome page.
I love the concept, but how do we make it faster?
I've had projects with 10-15 modules, and no performance hit, as in sub 200ms. And that's in AsgardCMS which adds more overhead than just the modules package.
Maybe you could try to profile you app using blackfire.io . It's using that tool that many performance improvements have been applied on the package.
I'm noticing the same in development environment, although it is yet to be deployed to a production environment, so I don't want to optimize too early. But simply having the modules register & boot on each request seems like it is impacting response times for a simple 200 OK endpoint.