[php-src] PR #12105: Preallocate result array size in xpath
| From: | nielsdos | Date: | Fri, 01 Sep 2023 23:35:51 +0000 |
| Subject: | [php-src] PR #12105: Preallocate result array size in xpath | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23548@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12105
Author: nielsdos
We know what size they're going to be, and we know they are packed arrays. Prevent
reallocations and initialisation overhead by setting the initial size and initializing it as packed
from the start.