3 ms·
Fibers were released in 8.1 but are there improvements in 8.2? I'm curious to see how useful it is until a lot of core libraries (curl, redis, mysqlnd, etc) ca
by datalopers 4y ago
Fibers were released in 8.1 but are there improvements in 8.2?
I'm curious to see how useful it is until a lot of core libraries (curl, redis, mysqlnd, etc) can be called non-blocking and/or trigger a fiber yield during a block? My understanding is swoole does a whole lot of work to enable hooking into those to allow coroutines, which won't implicitly exist with fibers?
- geenat 4y agoIMO, unless I am mistaken, using a continually running PHP process like Swoole removes advantages you get with vanilla PHP: fully isolated requests, file based routing, etc. This is why fibers are so big. It'll bring performance without the downsides.