-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit 8edd909
Fix GH-12778: Windows IIS FastCGI Spin-Up Performance Slowdown
The issue isn't limited to Windows only, I can also see the slowdown on
my Linux machine. The cause of the slowdown is 26e4244. 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.1 parent 50ccea3 commit 8edd909
File tree
4 files changed
+15
-1
lines changed- ext/readline
- main
- sapi/phpdbg
4 files changed
+15
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
118 | 127 |
| |
119 | 128 |
| |
120 | 129 |
| |
| |||
126 | 135 |
| |
127 | 136 |
| |
128 | 137 |
| |
138 | + | ||
139 | + | ||
129 | 140 |
| |
130 | 141 |
| |
131 | 142 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
637 | + | ||
638 | + | ||
637 | 639 |
| |
638 | 640 |
| |
639 | 641 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2098 | 2098 |
| |
2099 | 2099 |
| |
2100 | 2100 |
| |
2101 | - | ||
2102 | 2101 |
| |
2103 | 2102 |
| |
2104 | 2103 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1356 | 1356 |
| |
1357 | 1357 |
| |
1358 | 1358 |
| |
1359 | + | ||
1360 | + | ||
1359 | 1361 |
| |
1360 | 1362 |
| |
1361 | 1363 |
| |
|
0 commit comments