Reply to Re: Xml parser performance and Xml generation

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация