~gagern/xalan/trunk

Viewing all changes in revision 4453.

  • Committer: zongaro
  • Date: 2007-04-02 14:52:03 UTC
  • Revision ID: svn-v4:13f79535-47bb-0310-9956-ffa450edef68:xalan/java/trunk:524812
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).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: