You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Susanna Sjöholm <Su...@hiq.se> on 2005/03/02 13:45:43 UTC

RE: [ANN] XMLBeans 2.0.0-beta1, 1.0.4, 1.0.4-jdk1.3 available

Hi Yana,
Has this bug regarding xpath performance been fixed? 

If so, where can I get the fix - do I need to build latest source? 
If not, is the bug registered in JIRA so I can follow what happens?
/Susanna

-----Original Message-----
From: Yana Kadiyska [mailto:ykadiysk@bea.com]
Sent: den 25 februari 2005 22:33
To: user@xmlbeans.apache.org
Subject: RE: [ANN] XMLBeans 2.0.0-beta1, 1.0.4, 1.0.4-jdk1.3 available


Serge that is a bug...I'm hoping to check in a fix for that by the end
of the day

Yana

-----Original Message-----
From: Serge Simard [mailto:serge.simard@cgi.com] 
Sent: Thursday, February 24, 2005 6:05 PM
To: user@xmlbeans.apache.org
Subject: RE: [ANN] XMLBeans 2.0.0-beta1, 1.0.4, 1.0.4-jdk1.3 available

Kevin,
	I have just spent the better part of last night profiling
XmlBeans
2.0.0 (from svn, and in the just released archives) to uncover a big
performance problem that was causing Xpath queries to run very slowly.  

The fault lies in the Path class, in the following method. 
The Class.forName tries to dynamically load an inexistant class 
which is heavy on an application server with a lot of jars on the 
classpath.  My selectPath() calls throughput have increased 90% :

private static Path createXqrlCompiledPath(String pathExpr, String
currentVar)
    {
        if (_xqrlCompilePath == null) {
            try {
                Class xqrlImpl =
Class.forName("org.apache.xmlbeans.impl.newstore2.XqrlImpl");

                _xqrlCompilePath =
                        xqrlImpl.getDeclaredMethod("compilePath",
                                new Class[]{String.class, String.class,
Boolean.class});
            }
            catch (ClassNotFoundException e) {
                return null;
            }
            catch (Exception e) {
                throw new RuntimeException(e.getMessage(), e);
            }
        }

        Object[] args = new Object[]{pathExpr, currentVar, new
Boolean(true)};

        try {
            return (Path) _xqrlCompilePath.invoke(null, args);
        }
        catch (InvocationTargetException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
        catch (IllegalAccessException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }

Serge Simard, ext. 5900
-----Original Message-----
From: Kevin Krouse [mailto:kkrouse@bea.com] 
Sent: February 24, 2005 7:31 PM
To: dev@xmlbeans.apache.org; user@xmlbeans.apache.org;
announce@apache.org
Subject: [ANN] XMLBeans 2.0.0-beta1, 1.0.4, 1.0.4-jdk1.3 available

Apache XMLBeans 2.0.0-beta1, 1.0.4, and 1.0.4-jdk1.3 released

The Apache XMLBeans project is pleased to announce new releases of
XMLBeans.  The 2.0.0-beta1 release is a significant improvement from
previous release and has been in development for about 10 months.  The
1.0.4 release is a maintenance release focused on stability and bug
fixes.  The 1.0.4-jdk1.3 release is the first release of XMLBeans
compatible with JDK 1.3.

Major goals of the 2.0.0-beta1 release:
  - source backwards compatible
  - improve usability of wildcards, substitution groups, error handling
  - a native DOM level 2 API
  - integration with Saxon xpath/xquery engine
  - performance improvements
  - instance to schema and schema to instance tools

For a comprehensive list of improvements, see the CHANGES.txt file in
the distribution.

Goals for the next 2.0.0 release include fixing any remaining
performance issues and bugs.

The source and binaries are available on mirror near you at:
http://www.apache.org/dyn/closer.cgi/xmlbeans


Kevin Krouse
http://xmlbeans.apache.org/

--k 

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



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




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

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