Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Processing XML (Time Concerns)

Reply
Thread Tools

Processing XML (Time Concerns)

 
 
jeffnyman@gmail.com
Guest
Posts: n/a
 
      10-10-2006
This is purely an experiential question in nature, so I apologize for
its clear lack of focus.

What I'm curious about is if any of you have been using REXML (or
perhaps another XML solution for Ruby) to parse and modify XML files in
memory. If so, what sorts of processing times have you found?

I ask this in the context that I have some pretty sparse processing
being done on an XML file that is about 1.5 MB in size. This is, by
necessity, tree-based parsing because I need to modify some attributes
and elements as the parsing occurs. This kind of processing takes well
over an hour.

I know the details of how long something takes can vary vastly by the
details of the processing is being done but I'm just curious if people
have done in-memory processing of XML (where the XML file is at least 1
MB in size or greater) and how long that has taken.

- Jeff

 
Reply With Quote
 
 
 
 
Richard Conroy
Guest
Posts: n/a
 
      10-10-2006
On 10/10/06, http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)> wrote:
> What I'm curious about is if any of you have been using REXML (or
> perhaps another XML solution for Ruby) to parse and modify XML files in
> memory. If so, what sorts of processing times have you found?


Ask Tim Bray:
http://www.tbray.org/ongoing/
He is doing some pretty serious work in this regard.

I have seen some benchmarks that put REXML processing at being
about 10 times slower than an equivalent java mechanism:

http://www.pankaj-k.net/archives/200...or_java_a.html

REXML is the 'user-friendly' and cross platform ruby parser.
When you need hardcore performance, you need to check out
one of the alternative Ruby parsers (typically implemented in
C). YMMV.

 
Reply With Quote
 
 
 
 
Tim Perrett
Guest
Posts: n/a
 
      07-23-2007

>
> REXML is the 'user-friendly' and cross platform ruby parser.
> When you need hardcore performance, you need to check out
> one of the alternative Ruby parsers (typically implemented in
> C). YMMV.


For sure, checkout libxml - it is a great deal faster than REXML. Tim.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Post-Processing RAW vs Post-Processing TIFF Mike Henley Digital Photography 42 01-30-2005 08:26 AM
FYI: VTD-XML, the latest XML processing model Jimmy zhang XML 0 11-11-2004 01:26 AM
FYI: VTD-XML, the latest XML processing model Jimmy zhang Java 0 11-11-2004 01:25 AM
Question: processing HTML, re-write default processing action of many tags Hubert Hung-Hsien Chang Python 2 09-17-2004 03:10 PM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM



Advertisments