[php-src] Issue #8013: io_uring for stream_copy_to_stream
| From: | tsukasagenesis | Date: | Mon, 31 Jan 2022 13:11:00 +0000 |
| Subject: | [php-src] Issue #8013: io_uring for stream_copy_to_stream | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239371@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8013
Author: tsukasagenesis
### Description
Hello,
It would be really nice to implement io_uring like here https://lwn.net/Articles/879724/ to get
stream_copy_to_stream() really performant.
It would help a lot of stream proxy in php to be handled directly in the kernel, and increase
drastically the performance.
From many test, stream_copy_to_stream() is sadly "slow" because it didn't use any
trick, like send() or 0copy, but instead is just a warper for a classic read/write loop, no gain in
performance.