commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22333] - JXPathContextFactory doesn't cache most common result of search
Date Sun, 24 Aug 2003 02:37:15 GMT
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.

Mime
View raw message