Closed nicolas-grekas closed 1 year ago
Using https://github.com/devanych/psr-http-benchmark, I figured out that for strings smaller than ~200k, php://memory is faster than the custom zval stream. Past this threshold, zval stream is way faster thanks to copy-on-write.
php://memory
Using https://github.com/devanych/psr-http-benchmark, I figured out that for strings smaller than ~200k,
php://memory
is faster than the custom zval stream. Past this threshold, zval stream is way faster thanks to copy-on-write.