From: Keith Fahlgren Date: 2006-02-25T01:31:24+09:00 Subject: Re: [ANN] LibXML-Ruby 0.3.6 On Thursday 23 February 2006 2:32 pm, Ross Bamford wrote: > LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as > you may have guessed) a C-language Ruby binding to the Gnome LibXML2 > library, supporting a wide range of XML technologies and offering > very competitive performance across the board. Wow, this is a pretty incredible speedup! Input doc: keith@devel /work/frame/templates/main $ du -h main.chap.mx && wc main.chap.mx 2.2M main.chap.mx 21063 75272 2287526 main.chap.mx LibXML keith@devel /work/frame/templates/main $ time ruby -e "require 'rubygems'; require 'xml/libxml'; d = XML::Document.file('main.chap.mx'); d.find('//String').each{|n| puts n}" | wc 2090 9200 99275 real 0m0.785s user 0m0.728s sys 0m0.068s REXML: time ruby -e "require 'rexml/document'; d = REXML::Document.new(File.new('main.chap.mx')); REXML::XPath.each(d, '//String/'){|n| puts n.text}" | wc 2090 9200 60422 real 1m41.021s user 1m40.710s sys 0m0.308s Computer: 2 x PIII 650Mhz, 1GB RAM Nice work, folks. Keith