xml, expat, smarty and scaling

From: Date: Sat, 12 Apr 2003 17:30:50 +0000
Subject: xml, expat, smarty and scaling
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9223@lists.php.net to get a copy of this message
Hi -- I'm creating an application that reads in an xml stream, parses it using expat and formats the results using smarty. It seems to me I have two choices here: One is to accumulate all the xml data I need before pushing it off to a smarty template. The other is to format the data with multiple templates (in this case, three) as the document parses. From a design simplicity standpoint, a single template makes the most sense. However, I am concerned about how accumulating fairly large amounts of data in php arrays will scale vs. the additional io of the multiple template solution. Using expat to throw all the data into arrays seems to defeat the whole purpose of sax-style parsing. The xml files are about 11-14 KB, by the way. Any thoughts? Michael

« previous php.smarty.general (#9223) next »