[php-src] PR #19220: ext/standard: handle html entities empty string before processing
| From: | xepozz | Date: | Wed, 23 Jul 2025 11:11:31 +0000 |
| Subject: | [php-src] PR #19220: ext/standard: handle html entities empty string before processing | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32580@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19220
Author: xepozz
https://gist.github.com/xepozz/8a7cbb52dd2087634d2ddaa90a21acbe
### master
❯ ./sapi/cli/php test.php
Result: 0.12489318847656
Result: 0.025581121444702
Result: 0.024285078048706
### branch
❯ ./sapi/cli/php test.php
Result: 0.11230993270874
Result: 0.012480974197388
Result: 0.01120400428772
all the tests were made with local php build with enabled debug and so on
performance increases because of eliminating memory allocation, I hope memory usage is also reduced