commit | c7d92fb7df4d81f124db10bb0a0989306484b250 | [log] [tgz] |
---|---|---|
author | Henry Zongaro <zongaro@apache.org> | Mon Apr 02 15:51:55 2007 +0000 |
committer | Henry Zongaro <zongaro@apache.org> | Mon Apr 02 15:51:55 2007 +0000 |
tree | 4a67b40e180902a0eb95d2c26a5358ebe94777a2 | |
parent | fdc49d601b4911febfabc5d4d4b6f29a2c44ec2c [diff] |
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).