You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Alexander Heinrich (JIRA)" <xm...@xml.apache.org> on 2005/05/25 14:22:09 UTC

[jira] Created: (XMLBEANS-155) performance leak in XmlObject.selectPath()

performance leak in XmlObject.selectPath()
------------------------------------------

         Key: XMLBEANS-155
         URL: http://issues.apache.org/jira/browse/XMLBEANS-155
     Project: XMLBeans
        Type: Bug
  Components: XmlObject, XPath  
    Versions: Version 1.0.3    
 Environment: Win2k
    Reporter: Alexander Heinrich


It seems that selectPath on XmlObject keeps references to some internal data (might be cursors) that cannot be freed by the user (i.e. there's nothing for XmlObject like clearSelections for XmlCursor). After extensive use of selectPath the system slows down more and more.

How I found this bug: I have large XML documents (>5 MB) and use selectPath to retrieve an array of similar objects in this document. Every time I reload the document (and invoke selectPath again) the loading process takes a little longer than before... When I substitute the selectPath statement by some other code that does the same but without using selectPath the time for loading documents stays constant. If you need exemplary code email me: alexander.heinrich@bluescarab.de

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (XMLBEANS-155) performance leak in XmlObject.selectPath()

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacob Danner reassigned XMLBEANS-155:
-------------------------------------

    Assignee: Jacob Danner  (was: Yana Kadiyska)

> performance leak in XmlObject.selectPath()
> ------------------------------------------
>
>                 Key: XMLBEANS-155
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-155
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject, XPath
>    Affects Versions: Version 1.0.3
>         Environment: Win2k
>            Reporter: Alexander Heinrich
>         Assigned To: Jacob Danner
>
> It seems that selectPath on XmlObject keeps references to some internal data (might be cursors) that cannot be freed by the user (i.e. there's nothing for XmlObject like clearSelections for XmlCursor). After extensive use of selectPath the system slows down more and more.
> How I found this bug: I have large XML documents (>5 MB) and use selectPath to retrieve an array of similar objects in this document. Every time I reload the document (and invoke selectPath again) the loading process takes a little longer than before... When I substitute the selectPath statement by some other code that does the same but without using selectPath the time for loading documents stays constant. If you need exemplary code email me: alexander.heinrich@bluescarab.de

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


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


[jira] Assigned: (XMLBEANS-155) performance leak in XmlObject.selectPath()

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-155?page=all ]

Cezar Andrei reassigned XMLBEANS-155:
-------------------------------------

    Assign To: Yana Kadiyska

> performance leak in XmlObject.selectPath()
> ------------------------------------------
>
>          Key: XMLBEANS-155
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-155
>      Project: XMLBeans
>         Type: Bug
>   Components: XPath, XmlObject
>     Versions: Version 1.0.3
>  Environment: Win2k
>     Reporter: Alexander Heinrich
>     Assignee: Yana Kadiyska

>
> It seems that selectPath on XmlObject keeps references to some internal data (might be cursors) that cannot be freed by the user (i.e. there's nothing for XmlObject like clearSelections for XmlCursor). After extensive use of selectPath the system slows down more and more.
> How I found this bug: I have large XML documents (>5 MB) and use selectPath to retrieve an array of similar objects in this document. Every time I reload the document (and invoke selectPath again) the loading process takes a little longer than before... When I substitute the selectPath statement by some other code that does the same but without using selectPath the time for loading documents stays constant. If you need exemplary code email me: alexander.heinrich@bluescarab.de

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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