[php-src] PR #16120: Optimize in-memory XMLWriter

From: Date: Sun, 29 Sep 2024 10:41:16 +0000
Subject: [php-src] PR #16120: Optimize in-memory XMLWriter
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28888@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16120 Author: nielsdos We're currently using a libxml buffer, which requires copying the buffer to zend_strings every time we want to output the string. Furthermore, its use of the system allocator instead of ZendMM makes it not count towards the memory_limit and hinders performance. This patch adds a custom writer such that the strings are written to a smart_str instance, using ZendMM for improved performance, and giving the ability to not copy the string in the common case where flush has empty set to true.

« previous php.git-pulls (#28888) next »