HomePhorge

Avoid serializing to string

Description

Avoid serializing to string

Summary:
saveXml() serializes to a string which instantly doubles the memory
usage. Since the DOMDocument API doesn't allow us to write to the
php://temp stream we write to a temporary file instead.

Differential Revision: https://git.kolab.org/D1240

Details

Provenance
mollekopfAuthored on Apr 30 2020, 3:46 PM
mollekopfPushed on Aug 21 2023, 6:45 PM
Parents
R4:1c53e1cb4099: Manually track memory usage
Branches
Unknown
Tags
Unknown

Event Timeline