~gagern/xalan/trunk

Viewing all changes in revision 4451.

  • Committer: zongaro
  • Date: 2007-04-02 14:51:55 UTC
  • Revision ID: svn-v4:13f79535-47bb-0310-9956-ffa450edef68:xalan/java/trunk:524810
Part of fix for Jira issue XALANJ-2375.

Lexer.tokenize was always creating an OpMapVector object with large initial
sizes.  This was wasteful, because each XPath expression so tokenize might
need only a small amount of space.  Instead, changed the initial size to be
equal to five times the length of the string to be tokenized, just as a
very conservative estimate.  This has a significant impact on the performance
of the XPath API.

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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: