3 ms·
There's an async framework for PHP in form of an extension, called swoole (www.swoole.co.uk). It turns all of your I/O into async code without any control struc
by fraktl 7y ago
There's an async framework for PHP in form of an extension, called swoole (www.swoole.co.uk). It turns all of your I/O into async code without any control structure such as async/await. The performance gain is incredible. I experience minimum of 700% performance increase with the same code without swoole behind it. Long story short: run your code using swoole, all I/O is async by default, code appears synchronous so there's no change in your code, performance gain 7x.