From: Jeff Wood Date: 2006-11-04T09:33:12+09:00 Subject: Re: REXML ... performance & memory usage ... Tom Werner wrote: > Jeff Wood wrote: >> Does anybody have any tips on getting REXML to run faster and/or >> smaller ??? >> > > If having a pure ruby parser is not a requirement and you're on *nix, > then you can get great performance out of: > > http://libxml.rubyforge.org/ > > It uses libxml2 for the parsing, and as such is quite speedy. > > Tom > > I had to make two fixes to the source to get things to compile ruby_xml_parser.c & ruby_xml_document.c both needed to have #include "stdargs.h" included ... the compiler wasn't happy about trying to deal with the va_list data type without it. But, it's compiling now ... just thought I'd pass the information along for ya. After modifying my script to use the libxml binding ... it's sitting @ about 220M used instead of 800+M ... ( better ) ... and does only take 10-20 seconds to start iterating over data ... So, thank you for the pointer ... jd