cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject Re: XSLT benchmarks: dbonerow
Date Thu, 21 Feb 2002 19:20:00 GMT
Jacek,

On Thu, 21 Feb 2002 11:07:42 -0500, "Jacek R. Ambroziak" <jacek_ambroziak@yahoo.com>
wrote:

> The rewrite experiment only shows that there is a *serious bug*
> in the compiler code  AND  that there is *hope* for much improved
> performance of translets testing conditions in template patterns.
> 
> 'dbonerow' helped focus our attention.  There are other tests (eg. decoy)
> which seem affected by the same bug. And then there are of course
> many stylesheets written by our users :-)
> 
> The rewrite is of the form:
> 
> if (A && B) { ... }   -->  if (A) { if (B) { ... }}
> 
> If the second version is 300 times faster, then we've got
> something interesting going on here :-)

If the (A && B) expression is executed correctly, e.g. when A is
false, don't bother executing B, then the expressions are similar.

Is it possible that XSLTC doesn't do this optimization? I don't see
any other reason for such a huge difference.

Regards,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message