[BioRuby] Performance of Bio::Blast.reports

Anurag Priyam anurag08priyam at gmail.com
Mon Nov 22 05:07:08 UTC 2010


> On could, in fact, use the libxml2 pull parser to grab what you need, which doesn't require pulling the entire XML document into memory.

libxml2-ruby is quite buggy (segfaults, namespace does not work
correctly on attributes, inconsistent interface). AFAIK, its not Ruby
1.9.2 ready. I would suggest Nokogiri (Nokogiri::Reader - pull
parser[1]), which is almost as fast and has a better interface.

[1] http://nokogiri.rubyforge.org/nokogiri/Nokogiri/XML/Reader.html

-- 
Anurag Priyam,
3rd Year Undergraduate,
Department of Mechanical Engineering,
IIT Kharagpur.
+91-9775550642



More information about the BioRuby mailing list