Re: [Config] Extremely slow
| From: | Stephan Wentz | 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:
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... stephanParsing XML is slow in PHP. Furthermore, the Config package is slow and therefore should be used only to manipulate configuration files, not toreadthem. 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 toaPHP 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?