[02.08.2007 15:18] Dan Rossi wrote:
Thats what I thought, the same question came up regards to the PEAR
Config package aswell, need a way to prevent constant xml parsing
as I prefer to use xml for configs. Maybe implementing it into a
cache ?
<quote>
Why is there no $DomDocument->__serialize()?
* libxml2 is tweaked to the max for parsing data
* Serializing a binary form wouldn't improve speed
</quote>
http://php5.bitflux.org/xmlonspeed/slide_31.php
Serializing your config won't make it faster. The only thing you
could do is caching your config as array with APC, as it's able to
store the zval IIRC.
nico