Page MenuHomePhorge

Avoid serializing to string
ClosedPublic

Authored by mollekopf on Apr 30 2020, 6:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 12:44 AM
Unknown Object (File)
Mon, Apr 8, 6:13 AM
Unknown Object (File)
Feb 15 2024, 3:22 AM
Unknown Object (File)
Feb 12 2024, 1:36 PM
Unknown Object (File)
Feb 10 2024, 10:14 PM
Unknown Object (File)
Feb 10 2024, 9:49 PM
Unknown Object (File)
Jan 25 2024, 4:54 AM
Unknown Object (File)
Jan 18 2024, 7:58 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rS syncroton
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 11:50 AM
This revision was automatically updated to reflect the committed changes.