You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/08/24 04:37:15 UTC
DO NOT REPLY [Bug 22333] -
JXPathContextFactory doesn't cache most common result of search
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22333>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22333
JXPathContextFactory doesn't cache most common result of search
dmitri@plotnix.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From dmitri@plotnix.com 2003-08-24 02:37 -------
I fixed it basically as suggested. However, I would recommend using
JXPathContext.newContext() instead of JXPathContextFactory.newInstance
().newInstance(), because the static JXPathContext.newContext() method uses
additional cache. JXPathContextFactory caches the name of the factory class.
JXPathContext statically caches the instance of factory. Thus, using
JXPathContext.newContext() eliminates repeated allocation of the factory.