Prabu Ayyappan wrote:
I want to convert a huge XML file into an inMemory Hash. I tried using XML::Simple. But its taking huge memory space and time to convert it into Hash. While loading a XML file of 300MB its taking more memory space and time. Is there any better method to load this XML to memory ? Is there any benchmarks available ?

If your file is huge and you want it in memory then you must expect it to take
take a while to parse and occupy a huge memory space. Almost anything is better
than XML::Simple, but no module can easily make your data any smaller. You 
should
reassess your solution to see if you can work with only part of the data in 
memory.
I suggest you look at XML::Twig for processing XML in chunks. XML::LibXML is 
also
very good and you may find it faster.

HTH,

Rob




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to