note 48295 added to function.xml-parse-into-struct

From: Date: Sat, 18 Dec 2004 04:51:06 +0000
Subject: note 48295 added to function.xml-parse-into-struct
Groups: php.notes 
Request: Send a blank email to php-notes+get-81960@lists.php.net to get a copy of this message
For those of you thinking about using XML in a way in which an file will be parsed each time a page is loaded (i.e. part of a CMS system), consider the slowdown, and also consider that xml_prase_into_struct is ussually about twice as slow as writing your own custom parser of reasonable complexity. That's before you add in any of the examples below. Some of the code below and sites that have automatic xml -> php and php -> xml data translation are *very* useful, BUT they can take anywhere from 5 to 50 milliseconds to process a smallish (1 - 2kb) XML file on a fast server, which makes it unacceptable for high volume use. So after days of research and looking for an easy way out: if you need a speedy solution for processing XML files on each page load, and are stuck with PHP4, you're really really best to roll your own custom solution for the data structures you're dealing with. ---- Manual Page -- http://www.php.net/manual/en/function.xml-parse-into-struct.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48295 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48295&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48295&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81960) next »