Skip to content

Commit 15dde9d

Browse files
authored
Add some entries to the performance section of UPGRADING (#16019)
* [skip ci] Mention `sprintf()` optimization in UPGRADING * [skip ci] Mention ext/random performance improvements in UPGRADING
1 parent 8f00430 commit 15dde9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

UPGRADING

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,9 @@ PHP 8.4 UPGRADE NOTES
11721172
ZTS builds under highly concurrent loads. This affects the `printf()` family
11731173
of functions as well as serialization functions such as `json_encode()`,
11741174
`serialize()`.
1175+
. `sprintf()` using only `%s` and `%d` will be compiled into the equivalent
1176+
string interpolation, avoiding the overhead of a function call and repeatedly
1177+
parsing the format string.
11751178

11761179
- DOM:
11771180
. The performance of DOMNode::C14N() is greatly improved for the case without
@@ -1201,6 +1204,10 @@ PHP 8.4 UPGRADE NOTES
12011204
- PCRE:
12021205
. Improved the performance of named capture groups.
12031206

1207+
- Random:
1208+
. Improved the performance of \Random\Randomizer, with a specific focus
1209+
on the getBytes() and getBytesFromString() methods.
1210+
12041211
- SimpleXML:
12051212
. Improved performance and reduce memory consumption of XML serialization.
12061213

0 commit comments

Comments
 (0)