mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.