A different but valid approach to your concerns is krakjoe/parallel ( https://github.com/krakjoe/parallel/blob/develop/README.md). Unfortunately, NTS support is lacking, but it would be very good if the internals collaborated with this project.
El dom., 22 de dic. de 2019 17:59, Aran Reeks <cdtre...@gmail.com> escribió: > Hi Internals, > > Since the start of PHP 7, we've seen some amazing performance improvement > version by version as a result of core updates. > > Now some of the biggest wins have been implemented (with JIT due for PHP > 8), I'd personally love to see support for Async / Await introduced in > PHP's as a core language feature too. > > Being able to perform tasks in parallel such as reading or writing to DB, > cache, queues... Would be a massive advantage and the performance gains > from it could be really exciting! > > Looking at how Hack has implemented support, this seems like it could be a > great start for a RFC, what does everyone else think? > > Here's a link to Hack's implementation for reference: > https://docs.hhvm.com/hack/asynchronous-operations/some-basics > > Thoughts welcome from everyone. > > Cheers, > Aran >