Re: [Config] Extremely slow

From: Date: Tue, 25 Nov 2003 23:06:41 +0000
Subject: Re: [Config] Extremely slow
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9145@lists.php.net to get a copy of this message
Thorsten Suckow-Homberg wrote:
Parsing XML is slow in PHP. Furthermore, the Config package is slow and therefore should be used only to manipulate configuration files, not to
read
them. If you want a fast solution you can try to wait for PHP 5 and its SimpleXML parser or have your configuration file be converted by Config to
a
PHP array and then access this array directly in PHP (a lot faster).
Thx for the answer, but when I mean "slow" I mean "really" slow: Approximately 8 sec for 700 lines ox XML? Is that the way it should be?
i had problems with config & xml, too, i used it to transform a xml-file into a php-array, it took about 5-7 secs for 200-300 lines of xml, on a linux-machine, haven't tested it on windows... stephan

« previous php.pear.general (#9145) next »