You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/04/28 13:13:49 UTC

[jira] [Created] (AXIOM-417) Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser

Andreas Veithen created AXIOM-417:
-------------------------------------

             Summary: Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser
                 Key: AXIOM-417
                 URL: https://issues.apache.org/jira/browse/AXIOM-417
             Project: Axiom
          Issue Type: Improvement
          Components: API
    Affects Versions: 1.2.13
            Reporter: Andreas Veithen
            Assignee: Andreas Veithen
            Priority: Minor
             Fix For: 1.2.14


If XMLStreamReaderUtils#getDataHandlerReader is used on an XMLStreamReader from a coalescing parser (either directly or indirectly via OMContainer#getStreamReaderWithoutCaching()), then the method will use XMLStreamReader#getText(), which means that the entire base64 encoded content will be read into memory before being decoded. However, the Woodstox specific XMLStreamReader2#getText(Reader, boolean) API could be used to avoid this. This can be achieved easily by leveraging the org.apache.axiom.ext.stax.CharacterDataReader API and the StAX dialect framework.

--
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@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Work started] (AXIOM-417) Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on AXIOM-417 started by Andreas Veithen.

> Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser
> -----------------------------------------------------------------------------------
>
>                 Key: AXIOM-417
>                 URL: https://issues.apache.org/jira/browse/AXIOM-417
>             Project: Axiom
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: 1.2.13
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.2.14
>
>
> If XMLStreamReaderUtils#getDataHandlerReader is used on an XMLStreamReader from a coalescing parser (either directly or indirectly via OMContainer#getStreamReaderWithoutCaching()), then the method will use XMLStreamReader#getText(), which means that the entire base64 encoded content will be read into memory before being decoded. However, the Woodstox specific XMLStreamReader2#getText(Reader, boolean) API could be used to avoid this. This can be achieved easily by leveraging the org.apache.axiom.ext.stax.CharacterDataReader API and the StAX dialect framework.

--
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@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Commented] (AXIOM-417) Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264322#comment-13264322 ] 

Hudson commented on AXIOM-417:
------------------------------

Integrated in ws-axiom-trunk #912 (See [https://builds.apache.org/job/ws-axiom-trunk/912/])
    AXIOM-417: Enabled some optimizations with Woodstox 4 that improve performance in coalescing mode. (Revision 1331757)

     Result = SUCCESS
veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/pom.xml
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/Woodstox4StreamReaderWrapper.java

                
> Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser
> -----------------------------------------------------------------------------------
>
>                 Key: AXIOM-417
>                 URL: https://issues.apache.org/jira/browse/AXIOM-417
>             Project: Axiom
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: 1.2.13
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.2.14
>
>
> If XMLStreamReaderUtils#getDataHandlerReader is used on an XMLStreamReader from a coalescing parser (either directly or indirectly via OMContainer#getStreamReaderWithoutCaching()), then the method will use XMLStreamReader#getText(), which means that the entire base64 encoded content will be read into memory before being decoded. However, the Woodstox specific XMLStreamReader2#getText(Reader, boolean) API could be used to avoid this. This can be achieved easily by leveraging the org.apache.axiom.ext.stax.CharacterDataReader API and the StAX dialect framework.

--
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@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Resolved] (AXIOM-417) Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-417.
-----------------------------------

    Resolution: Fixed
    
> Optimize XMLStreamReaderUtils#getDataHandlerReader when used on a coalescing parser
> -----------------------------------------------------------------------------------
>
>                 Key: AXIOM-417
>                 URL: https://issues.apache.org/jira/browse/AXIOM-417
>             Project: Axiom
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: 1.2.13
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.2.14
>
>
> If XMLStreamReaderUtils#getDataHandlerReader is used on an XMLStreamReader from a coalescing parser (either directly or indirectly via OMContainer#getStreamReaderWithoutCaching()), then the method will use XMLStreamReader#getText(), which means that the entire base64 encoded content will be read into memory before being decoded. However, the Woodstox specific XMLStreamReader2#getText(Reader, boolean) API could be used to avoid this. This can be achieved easily by leveraging the org.apache.axiom.ext.stax.CharacterDataReader API and the StAX dialect framework.

--
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@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org