[GIT-PULLS] [php-src] PR #23417: ext/dom: Avoid fetching the class attribute value twice
[email protected] (LamentXU123)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
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.