[php-src] PR #15950: Small optimization in dom_local_name_compare_ex()
| From: | nielsdos | Date: | Wed, 18 Sep 2024 19:26:16 +0000 |
| Subject: | [php-src] PR #15950: Small optimization in dom_local_name_compare_ex() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28664@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15950
Author: nielsdos
We can use
memcmp() directly and skip some of the logic handling in
zend_binary_strcmp(). perf record shows a reduction for
dom_html5_serializes_as_void() from 3.12% to 0.77%.