php spark really slow - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: php spark really slow (/showthread.php?tid=77230) |
php spark really slow - codewell - 08-04-2020 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 RE: php spark really slow - paulbalandan - 08-15-2020 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. RE: php spark really slow - codewell - 08-16-2020 (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 |