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, 5:46 PM
mollekopfPushed on May 4 2020, 11:50 AM
Differential Revision
D1240: Avoid serializing to string
Parents
rS1c53e1cb4099: Manually track memory usage
Branches
Unknown
Tags
Unknown
Build Status
Buildable 29344