-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit 90b9484
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 37a1e19 commit 90b9484
File tree
5 files changed
+23
-1
lines changed- ext/readline
- main
- sapi/phpdbg
5 files changed
+23
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + |
Original 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 | |
---|---|---|---|
| |||
2104 | 2104 |
| |
2105 | 2105 |
| |
2106 | 2106 |
| |
2107 | - | ||
2108 | 2107 |
| |
2109 | 2108 |
| |
2110 | 2109 |
| |
|
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