|
Posted by Steve on 09/05/07 16:59
> "Bastien Continsouzas" <dev@continsouzas.com> wrote in message
> news:1189006678.130208.175550@19g2000hsx.googlegroups.com...
>> Hello,
>>
>> I need to parse relatively small XML files (less than 100 kB) and to
>> write XML files that can get quite big (the bigger I can get without
>> having performance issues, the better).
>
> i don't think you'll notice any appreciable difference between parsers
> with file sizes that small.
>
>> I'd also like to know if writing the XML file using plain strings
>> would be a lot faster and/or would use a lot less memory than using a
>> parser to build them. And if I choose this option, what is the fastest
>> way to build big strings in PHP ?
one last thing...if your xml is going to run over your memory constraints,
you'd want to look at writing to file either in chuncks or line by line.
then do with the file what you intend, and then kill it.
Navigation:
[Reply to this message]
|