[php-src] Issue #8974: PHP 8.1 json_encode() function performs slow on Debian

From: Date: Mon, 11 Jul 2022 10:58:05 +0000
Subject: [php-src] Issue #8974: PHP 8.1 json_encode() function performs slow on Debian
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241899@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8974 Author: MirzaazriM ### Description Im facing strange issue on couple of our Debian servers, where we use PHP 8.1 version - some of our pages load slow, and after some investigating it turned out that json_encode() function takes most of the loading time. For example if page loads in 10 seconds more then 9 seconds json_encode() needs to finish its job. We tested the same page when switching PHP version on the same servers to 8.0 and 7.4 and in those cases everything looks fine (whole page needs less then second to load). Also I tested this locally on PHP 8.1 and everything is ok. Does anyone knows what could be the issue here? P.S. I also suspect that some of the other PHP built in function are too slow on same PHP version and same Debian environment, but i couldnt prove it yet. ### PHP Version 8.1 ### Operating System Debian

« previous php.bugs (#241899) next »