Avoid the pitfall of premature optimization! There is no need to use
CompiledExpressions unless you have to.  If later you discover that you
have a performance problem caused by the number of different xpaths you
need to evaluate, then start using compiled expressions.  And, of
course, JXPath has a small internal cache of those. That cache should
suffice for casual use of JXPath.

- Dmitri

--- Psi Aushilfe3 <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> How much time does it approximately take to compile an jxpath
> expression?
> 
> To me it does make the source much more readable and understandable
> to
> have the xpaths directly in the code instead of referring compiled
> expression since the xpath itself very likely is more understandable
> than some variable name.
> 
> So, why doesn't JXPathContext cache recurring jxpath expressions on
> it's
> own?
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to