php spark really slow |
Thank you for building this ... I love it
I have one question ... Why is it that running the command "php spark serve", is so slow compared to changing to the public directory and running "php -S localhost:8080" It works 10 times faster Please help me understand
Because spark is a collection of commands and serve is just one of them. Calling php spark serve will internally do this:
1. Collects all available commands 2. Parses your arguments passed to terminal 3. Checks if serve is a defined command 4. Calls the Serve command 5. Serve command runs the local PHP server. (08-15-2020, 12:39 PM)paulbalandan Wrote: Because spark is a collection of commands and serve is just one of them. Calling php spark serve will internally do this: It's not when starting the server, it's when serving files. Every request is slow, even if the response code is 200. Thanks for replying |
Welcome Guest, Not a member yet? Register Sign In |