ZF-8457: Improving scalability of Zend_XmlRpc by replacing DOMDocument with plain text templates
Hey guys! I'm currently working on a WebService using Zend_XmlRpc. The service has to handle rather large responses. However, as I had to find out, the (imho excessive) use of DOMDocument instances for building XML requests/responses becomes a tremendous parameter as the number of processed values grows.
Replacing DOMDocument with plain text templates in Zend_XmlRpc_Value_*::saveXML() improved performance a lot. The cummulativ execution time of Zend_XmlRpc_Response::__toString() became about 3 times faster.
Attached to this report you can find a patch against ZF-1.9.3PL1 which solves this issue. A fork of Zend_XmlRpc which can be used as a standalone replacement (i.e. no need to touch ZF code) can be found here: http://github.com/polycaster/Polycast_XmlRpc/