The outcome of optimizing the memory usage and helping to get past some of these out of memory issues is definitely a big win - but I don't know enough about the event-driven parsing paradigm to speak to the outcome. I guess my vote would be that it's worth a shot for sure.
Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 ----- "Adrian Crum" <adrian.c...@yahoo.com> wrote: > OFBiz uses a lot of XML files. When each XML file is read, it is first > parsed into a DOM Document, then the DOM Document is parsed into OFBiz > Java objects. This two-step process consumes a lot of memory, and it > takes more time than it should. > > There is an alternative - what is called event-driven parsing. The XML > parser can be set up to convert XML elements directly to the OFBiz > Java objects - bypassing the DOM Document build and parse steps. > Theoretically, this could provide a huge performance boost, and it > would use less memory. In addition, it would solve the problem of huge > XML files maxing out server memory during the parse process - like > with entity XML import/export. > > Has anyone else considered this? Do you think it is worth pursuing? > > -Adrian