Jump to content of transcoded page.

This is a text-only page produced by the demo version of Usablenet Assistive: the actual content starts below this notice. For more details go to Lift Assistive Help Center.

ॐ C S Shyam Sundar’s Thoughtpad

DOM XML parsing in Ruby using libxml is really 300x faster than REXML

In Programming on August 17, 2008 at 11:29 pm

Its true!

I tried parsing a 15MB, proper XML file with nearly 20 sub nodes for a parent node.

Being newbie to Ruby, I came across the default option of REXML. I instrumented the code using the Ruby benchmark API.

A Single simple XPath query for one node to traverse thro’ the entire XML file using REXML takes 2043 seconds.

The same using LibXML takes 2 seconds.,

This shows the power of a native C library and a wrapper!

Text Only Options

Top of page


Text Only Options

Open the original version of this page.

     

Usablenet Assistive is a UsableNet product. Usablenet Assistive Main Page.