/[Apache-SVN]
ViewVC logotype

Revision 524815


Jump to revision: Previous Next
Author: zongaro
Date: Mon Apr 2 15:52:15 2007 UTC (17 years ago)
Changed paths: 1
Log Message:
Part of fix for Jira issue XALANJ-2375.

Added a new constructor and corresponding reset method that allow the caller
to specify the initial size for the arrays contained in a VariableStack.  This
is important for XPath expression evaluation, where additional stack entries
are never needed.  Previously, the arrays were always allocated based on the
maximum recursion depth permitted by the XSLT processor, which was caused
unnecessary initialization overhead using the various XPath APIs.

In the case of JAXPVariableStack, which extends VariableStack, the default
constructor can always use specify the minimal stack size on the super class's
constructor.

Reviewed by Christine Li (jycli () ca ! ibm ! com).


Changed paths

Path Details
Directoryxalan/java/trunk/src/org/apache/xpath/jaxp/JAXPVariableStack.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26