[php-src] PR #23417: ext/dom: Avoid fetching the class attribute value twice
| From: | LamentXU123 | Date: | Sat, 22 Aug 2026 20:05:50 +0000 |
| Subject: | [php-src] PR #23417: ext/dom: Avoid fetching the class attribute value twice | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38082@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23417
Author: LamentXU123
DOMTokenList already retrieves the class attribute value when checking whether its cached token set
is stale. And When rebuilding the set, the same value was fetched again.
So here, For attributes consisting of multiple child nodes, fetching the value calls
xmlNodeGetContent and we can actually optimize this process by removing this redundant allocation.