Professional Web Applications Themes

REXML Performance - Ruby

I am using the Tree Pr in REXML. While parsing short doents performance is great, performance is significantly impacted when parsing large doents. Specifically, this occurs when the following line is executed: xmlDoc = Doent.new(File.new(fileToP)) Any ideas?...

  1. #1

    Default REXML Performance

    I am using the Tree Pr in REXML. While parsing short doents performance is great, performance is significantly impacted when parsing large doents. Specifically, this occurs when the following line is executed:

    xmlDoc = Doent.new(File.new(fileToP))

    Any ideas?


    crazyfishpants Guest

  2. #2

    Default Re: REXML Performance

    crazyfishpants wrote: 

    There was a longish thread on this topic earlier this month. The punch
    line is here:

    http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/91212

    Steve



    Steven Guest

  3. #3

    Default Re: REXML Performance

    "crazyfishpants" <ge.com> wrote in message news:<talkaboutprogramming.com>... 

    Which version of REXML are you using? Recent versions had a speed
    degredation bug which has been fixed in the current version.

    However, this won't entirely fix your problem, since processing XML
    entirely in Ruby is always going to be relatively slow (compared to
    compiled languages, such as C or Java).

    You can improve performance a little by using the Pull or SAX2
    prs, but then you lose the tree functions. There is also a new,
    incomplete, undoented light-weight tree API that you can play with
    that should be just a little slower than the Pull API (the fastest API
    in REXML).

    --- SER
    Sean Guest

Similar Threads

  1. ANN: REXML 2.7.4
    By Sean in forum Ruby
    Replies: 8
    Last Post: February 26th, 03:44 AM
  2. Ruby 1.8.1 REXML performance
    By Steven in forum Ruby
    Replies: 18
    Last Post: February 14th, 03:26 AM
  3. ANN: REXML 2.7.2
    By Sean in forum Ruby
    Replies: 17
    Last Post: December 15th, 08:25 PM
  4. rexml 2.5.8 warning
    By Kurt V. Hindenburg in forum Ruby
    Replies: 1
    Last Post: November 7th, 07:57 PM
  5. Replies: 2
    Last Post: July 16th, 09:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139