Re: waiting a long time for a XML file
| From: | Richard Lynch | Date: | Thu, 15 Nov 2001 17:27:04 +0000 |
| Subject: | Re: waiting a long time for a XML file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74749@lists.php.net to get a copy of this message | ||
Eric Trezza wrote:
> I need some help regarding the creation of a text file which is a XML
> file. Actually, PHP creates the file without any problem and the XML
> format is fine. My only trouble is that it take on average 3 or 4 minutes
> to perform the task.
> Do you have any idea why it takes so long ??
Which library are you using to do XML?
What's your source code look like?
See if you can't analyze what *PARTS* of the creation/writing are taking so
long.
Wild Guess:
If it's being written to disk piece by piece, you *MIGHT* get a big
speed-up in creating the XML doc as a giant string, and then writing it to
disk in a "one shot" fwrite operation.
--
Like music? http://l-i-e.com/artists.htm