[php-src] PR #14204: Optimize and reduce memory usage of XML serialization
| From: | nielsdos | Date: | Sat, 11 May 2024 16:18:43 +0000 |
| Subject: | [php-src] PR #14204: Optimize and reduce memory usage of XML serialization | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26116@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14204
Author: nielsdos
The serialization process uses the system allocator and requires a copy to request allocated memory
once finished. This patch improves this by using smart_str to build the resulting string, reducing
the number of copies and reducing total peak memory usage.