This is different than something like Node.js, where a single thread handles all requests and each module is cached when it's first loaded. Once the request finishes it discards all of the loaded data. When PHP receives a request, it loads all of its dependencies on a per-request basis. The reason behind this slow performance is two-fold, caused by the combination of the PHP request model and the latency when transferring data between Docker Desktop's Linux VM and the host MacOS machine. This article will show you how to increase the speed of a containerized Laravel app during development on MacOS and Windows by moving Composer's vendor directory to inside the container. This made the interactivity in a connected React app feel painfully slow. I was working on an API endpoint in the app that had a response time of a little more than a second. I'm building a Laravel app on my MacBook Pro with Docker by mounting my project folder inside a Docker container.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |