[php-src] PR #12784: Fix GH-12778: Windows IIS FastCGI Spin-Up Performance Slowdown

From: Date: Sat, 25 Nov 2023 15:19:12 +0000
Subject: [php-src] PR #12784: Fix GH-12778: Windows IIS FastCGI Spin-Up Performance Slowdown
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24318@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12784 Author: nielsdos The issue isn't limited to Windows only (although locales on Windows are much slower so the impact is higher), I can also see the slowdown on my Linux machine. The cause of the slowdown is 26e424465c. In that commit a locale reset routine was implemented that gets called on startup. The fix from that commit is only necessary when using readline functionality, there are three places that is used: - phpdbg - with readline_cli - readline() php function So we make sure we only reset the locale when one of these is used, preventing the overhead on normal website-serving use-cases. I targeted PHP 8.2 here because I find it a bit risky to put this into 8.1 as today is the last day for bugfixes... I'm also not targeting master because it's a fix for a performance regression.

« previous php.git-pulls (#24318) next »