You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/02/18 21:59:28 UTC

[jira] Created: (FELIX-2104) Investigate the possibility to use a different xml parser

Investigate the possibility to use a different xml parser
---------------------------------------------------------

                 Key: FELIX-2104
                 URL: https://issues.apache.org/jira/browse/FELIX-2104
             Project: Felix
          Issue Type: Task
          Components: Bundle Repository (OBR)
            Reporter: Guillaume Nodet


kxml is nice because it's small
We may want to check using faster parser if they are available while still keeping kxml as a fallback.

Woodstox is one of the fastest parser so we may want to see what's possible with it.

The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Commented: (FELIX-2104) Investigate the possibility to use a different xml parser

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835693#action_12835693 ] 

Guillaume Nodet commented on FELIX-2104:
----------------------------------------

Yeah, I'm not thinking of embedding it.
I've done some initial testing using a stax parser and woodstox underneath.
The early tests shows a speed improvement > 7x, so it's really worth investigating.
I need to try with the default sun stax parser.  If perfs are not too bad, the easiest way would be to simply use the stax parse if available.  It would use whichever implementation is available (hopefully woodstox has been configured) or the JVM one.

> Investigate the possibility to use a different xml parser
> ---------------------------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Resolved: (FELIX-2104) Add an optional faster stax based parser

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

Guillaume Nodet resolved FELIX-2104.
------------------------------------

       Resolution: Fixed
    Fix Version/s: bundlerepository-1.6.0

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	M	bundlerepository/pom.xml
	M	bundlerepository/src/main/java/org/apache/felix/bundlerepository/RepositoryImpl.java
	A	bundlerepository/src/main/java/org/apache/felix/bundlerepository/StaxParser.java
	M	bundlerepository/src/test/java/org/apache/felix/bundlerepository/MockBundleContext.java
	M	bundlerepository/src/test/java/org/apache/felix/bundlerepository/RepositoryImplTest.java
	M	bundlerepository/src/test/java/org/apache/felix/bundlerepository/ResolverImplTest.java
	A	bundlerepository/src/test/java/org/apache/felix/bundlerepository/StaxParserTest.java
Committed r911818


The StaxParser is completely optional but if the stax package is available, it will be used and can provides a parsing gain > 10x

> Add an optional faster stax based parser
> ----------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Work started: (FELIX-2104) Add an optional faster stax based parser

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

Work on FELIX-2104 started by Guillaume Nodet.

> Add an optional faster stax based parser
> ----------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Updated: (FELIX-2104) Add an optional faster stax based parser

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

Guillaume Nodet updated FELIX-2104:
-----------------------------------

    Assignee: Guillaume Nodet
     Summary: Add an optional faster stax based parser  (was: Investigate the possibility to use a different xml parser)

> Add an optional faster stax based parser
> ----------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Updated: (FELIX-2104) Add an optional faster stax based parser

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2104:
-----------------------------------

    Affects Version/s: bundlerepository-1.4.3

> Add an optional faster stax based parser
> ----------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.4.3
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Commented: (FELIX-2104) Investigate the possibility to use a different xml parser

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835441#action_12835441 ] 

Richard S. Hall commented on FELIX-2104:
----------------------------------------

>From my point of view, the main issues here are keeping OBR small, self-contained, and usable across Java versions. I'm not knowledgeable about woodstox but a quick look appears like it isn't too small (3x the size of the current OBR bundle), so just replacing kxml2 doesn't look good. But, yeah, we could implement some sort of optional import-package approach, perhaps.

> Investigate the possibility to use a different xml parser
> ---------------------------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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


[jira] Closed: (FELIX-2104) Add an optional faster stax based parser

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

Carsten Ziegeler closed FELIX-2104.
-----------------------------------


> Add an optional faster stax based parser
> ----------------------------------------
>
>                 Key: FELIX-2104
>                 URL: https://issues.apache.org/jira/browse/FELIX-2104
>             Project: Felix
>          Issue Type: Task
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.4.3
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> kxml is nice because it's small
> We may want to check using faster parser if they are available while still keeping kxml as a fallback.
> Woodstox is one of the fastest parser so we may want to see what's possible with it.
> The main driver behind that is speed, so we want to measure the parsing time with kxml vs woodstox.

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