1. Introduction · swooletw/laravel-swoole Wiki - 0 views
-
when you run PHP script every time, PHP needs to initialize modules and launch Zend Engine for your running environment. And your PHP script needs to be compiled to OpCodes and then Zend Engine can finally execute them.
-
in traditional PHP lifecycle, it wastes a bunch of time building and destroying resources for your script execution.
-
have a built-in server on top of Swoole, and all the scripts can be kept in memory after the first load