Skip to content

Commit 9bc8b7e

Browse files
committed
[skip ci] Add several UPGRADING entries for performance improvements
Intl: PR #22069 URI: PR #21560 Zip: PR #21572
1 parent 332baba commit 9bc8b7e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎UPGRADING‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ PHP 8.6 UPGRADE NOTES
501501
when using PHP_JSON_PRETTY_PRINT.
502502

503503
- Intl:
504+
. Improved performance of IntlCalendar::getAvailableLocales() and
505+
IntlDateFormatter::localtime() / datefmt_localtime() by pre-allocating
506+
their returned arrays.
504507
. Improved performance of transliterator_list_ids() and
505508
resourcebundle_locales() by pre-allocating their returned arrays.
506509

@@ -518,10 +521,14 @@ PHP 8.6 UPGRADE NOTES
518521
. Improved performance of str_split().
519522

520523
- URI:
524+
. Improved performance of Uri\WhatWg\Url::parse() when collecting
525+
validation errors by pre-allocating the error array.
521526
. Reduced allocations when reading IPv6/IPFuture hosts and paths with
522527
Uri\Rfc3986\Uri.
523528
. Improved performance and memory consumption when using normalizing
524529
(non-raw) getters on already-normalized URIs with Uri\Rfc3986\Uri.
525530

526531
- Zip:
532+
. Improved performance of ZipArchive::addGlob() and
533+
ZipArchive::addPattern() by pre-allocating their returned arrays.
527534
. Avoid string copies in ZipArchive::addFromString().

0 commit comments

Comments
 (0)