Got a URL or more info on these bindings? Test code? How to get it
running?
Mathieu Blondel wrote:
For large file, stream parsers are faster and have a smaller memory
footprint.
A few months ago, I also tested the expat bindings for ruby which
turned out to be up to 20 times faster than the stream parser provided
by REXML.
subimage a écrit :
WHOAH!
Ok so I finally dug into the stream parser and this is lightning fast!
Thanks everyone for the advice...this is really sweet.
PS: I learned a lot from the tutorial available here:
http://www.rubyxml.com/articles/REXML/Stream_Parsing_with_REXML
I wrote a BasicStreamListener that throws each item into a hash
complete with pseudo xPaths...
Let me know if anyone would be interested in it, or a tutorial. Might
write something up for my blog as well on the subject, since there
doesn't seem to be a wealth of information out there on the subject.