020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.
Top » XML

XML Reader vs. SimpleXML
[XML bookmark]

XML Reader vs. SimpleXML

Link above shows consuming (reading and using) large XML sources.

SimpleXML and XMLReader worked with 190MB document (21467 records).

Sample record.

<persons>
   <person>
       <name>John</name>
       <!-- other nodes -->
   </person>
   <!-- 21466 person nodes -->
</persons>

 

SimpleXML

Test One:
Nodes : 1
Peak Memory Usage: 18%
Processed 190MB of XML in 3.14164 seconds

Test Two:
Nodes : 21467
Peak Memory Usage: 18%
Processed 190MB of XML in 3.20796 seconds

 

XMLReader

Test One:
Nodes: 1
Peak Memory Usage: 0.3%
Processed 190MB of XML in 0.00128 seconds

Test Two:
Nodes : 21467
Peak Memory Usage: 0.7%
Processed 190MB of XML in 16.4478 seconds

 

More in link:
 http://www.codem.com.au/streams/2009/web-development/consuming-xml-fast-with-php-and-xmlreader.html