lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-122) Add optional support for Ruby-libxml2 (vs. REXML)
Date Tue, 30 Jan 2007 03:07:07 GMT

    [ https://issues.apache.org/jira/browse/SOLR-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468472
] 

Erik Hatcher commented on SOLR-122:
-----------------------------------

Nice benchmarks Coda.  I buy it.    But wow, libxml is faster than string concatenation. 
That surprises since surely libxml is doing more work, but down in C instead of Ruby.  Another
nail in REXMLs coffin.

Let me get those refactorings to the request/responses committed and we'll rework this so
that it can work automatically if libxml-ruby gem is installed.  Sound good?

> Add optional support for Ruby-libxml2 (vs. REXML)
> -------------------------------------------------
>
>                 Key: SOLR-122
>                 URL: https://issues.apache.org/jira/browse/SOLR-122
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>            Reporter: Coda Hale
>         Attachments: libxml.rb, libxml.rb
>
>
> This file adds drop-in support for the ruby-libxml2, which is a wrapper for the libxml2
library, which is an order of magnitude or so faster than REXML.
> This depends on my SOLR-121 patch for multi-document adds, since the behavior of Solr::Request::AddDocument#to_s
is different.
> Requiring this makes some tests fail, but for trivial reasons: some tests are directly
tied to REXML, others fail due to interelement whitespace added by libxml2 (which you can't
disable via the Ruby interface). Functionally, it's identical, and passes all functional tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message