You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sami Siren (JIRA)" <ji...@apache.org> on 2012/06/15 12:31:43 UTC

[jira] [Commented] (SOLR-2054) Remove StAX libraries from trunk (java6)

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

Sami Siren commented on SOLR-2054:
----------------------------------

fwiw: when parsing 1m simple update 1 doc xml messages the woodstox (com.ctc.wstx.sr.ValidatingStreamReader, 13068ms) seems to be roughly 2 times as fast as the jdk impl (com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl, 21433ms).

I think this all comes down to how significant portion of total ingestion time is being spent in parsing xml (vs all the rest).

Test code:
{code}
    XMLStreamReader parser = 
      inputFactory.createXMLStreamReader( new StringReader( xml ) );
    parser.next(); // read the START document...
    //null for the processor is all right here
    XMLLoader loader = new XMLLoader();
    SolrInputDocument doc = loader.readDoc( parser );
    }
{code}


                
> Remove StAX libraries from trunk (java6)
> ----------------------------------------
>
>                 Key: SOLR-2054
>                 URL: https://issues.apache.org/jira/browse/SOLR-2054
>             Project: Solr
>          Issue Type: Task
>            Reporter: Ryan McKinley
>            Priority: Trivial
>             Fix For: 4.1
>
>
> Java 6 includes the StAX libraries, so there is no need to include them directly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org