[jira] Issue Comment Edited: (JCR-1312) Get rid of DOM for XML support

2008-01-17 Thread Padraic Hannon (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12560103#action_12560103
 ] 

hannonpi edited comment on JCR-1312 at 1/17/08 2:04 PM:
--

All of our current CQ publish instances are currently CPU bound. So, while, XML 
performance may not be the central issue, anything we can do to reduce CPU 
overhead would be helpful for us here.

That being said it seems that kxml's (and perhaps jixb's) pull parser approach 
has given us performance gains and lower footprints when compared to jaxb and 
other mechanisms (http://www.ibm.com/developerworks/library/x-databdopt2/ for 
info on jixb).

  was (Author: hannonpi):
All of our current CQ publish instances are currently CPU bound. So, while, 
XML performance may not be the central issue, anything we can do to reduce CPU 
overhead would be helpful for us here.
  
 Get rid of DOM for XML support
 --

 Key: JCR-1312
 URL: https://issues.apache.org/jira/browse/JCR-1312
 Project: Jackrabbit
  Issue Type: Improvement
  Components: jackrabbit-webdav
Reporter: Felix Meschberger

 Currently the web dav library uses Xerces and DOM to parse and create XML 
 data. This mechanism is well-known but has two major issues: It is slow and 
 it has a big memory footprint. In order to solve these two issues, I suggest 
 to drop the use of the W3C DOM in webdav in favor of something easier and 
 more straight forward to use.
 One candidate could be (out of my head and based on my bias towards KXml) 
 KDOM. See also http://www.kxml.org.ww
 See also JCR-1261 for more discussions on this issue.

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



[jira] Issue Comment Edited: (JCR-1312) Get rid of DOM for XML support

2008-01-16 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12559541#action_12559541
 ] 

fmeschbe edited comment on JCR-1312 at 1/16/08 7:41 AM:
-

Performance: kXml is about twice as fast as Xerces for both parsing to DOM and 
serializing from DOM.

Memory Footprint: 
xercesimpl 2.8.1 Impl: 1.2MB
kxml 2.2.2: 10KB

To be honest: using kxml instead of xerces requires the additional classes I 
added in the second patch to JCR-1261 [1]. But these are small, and one has 
even been copied ...

To me theses figures are quite impressive.

[1] https://issues.apache.org/jira/secure/attachment/12371412/JCR-1261_2.patch

  was (Author: fmeschbe):
Performance: kXml is about twice as fast as Xerces for both parsing and 
serializing

Memory Footprint: 
xercesimpl 2.8.1 Impl: 1.2MB
kxml 2.2.2: 10KB

To be honest: using kxml instead of xerces requires the additional classes I 
added in the second patch to JCR-1261 [1]. But these are small, and one has 
even been copied ...

To me theses figures are quite impressive.

[1] https://issues.apache.org/jira/secure/attachment/12371412/JCR-1261_2.patch
  
 Get rid of DOM for XML support
 --

 Key: JCR-1312
 URL: https://issues.apache.org/jira/browse/JCR-1312
 Project: Jackrabbit
  Issue Type: Improvement
  Components: jackrabbit-webdav
Reporter: Felix Meschberger

 Currently the web dav library uses Xerces and DOM to parse and create XML 
 data. This mechanism is well-known but has two major issues: It is slow and 
 it has a big memory footprint. In order to solve these two issues, I suggest 
 to drop the use of the W3C DOM in webdav in favor of something easier and 
 more straight forward to use.
 One candidate could be (out of my head and based on my bias towards KXml) 
 KDOM. See also http://www.kxml.org.ww
 See also JCR-1261 for more discussions on this issue.

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



[jira] Issue Comment Edited: (JCR-1312) Get rid of DOM for XML support

2008-01-15 Thread angela (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12558999#action_12558999
 ] 

anchela edited comment on JCR-1312 at 1/15/08 1:52 AM:
--

An alternative would be to use SAX instead of DOM... which would not require to 
add another dependency.

  was (Author: anchela):
An alternative would be to use SAX instead of DOM.
  
 Get rid of DOM for XML support
 --

 Key: JCR-1312
 URL: https://issues.apache.org/jira/browse/JCR-1312
 Project: Jackrabbit
  Issue Type: Improvement
  Components: jackrabbit-webdav
Reporter: Felix Meschberger

 Currently the web dav library uses Xerces and DOM to parse and create XML 
 data. This mechanism is well-known but has two major issues: It is slow and 
 it has a big memory footprint. In order to solve these two issues, I suggest 
 to drop the use of the W3C DOM in webdav in favor of something easier and 
 more straight forward to use.
 One candidate could be (out of my head and based on my bias towards KXml) 
 KDOM. See also http://www.kxml.org.ww
 See also JCR-1261 for more discussions on this issue.

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