Subject: RE: Performance
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 12 Oct 2005 12:00:31 +0100
|
> I just have noticed
>
> This way of writing the code is much faster
>
> count(*[starts-with(name(),'DGBUIMSNNumber')][@action='add'])
>
> than this way:
>
> count(*[starts-with(name(),'DGBUIMSNNumber') and @action='add'])
>
>
> Why is that?
Performance depends on which XSLT processor you are using. There's nothing
intrinsic about these two expressions that makes one faster than the other,
it's just a quirk of the particular implementation you ares using (or
perhaps of your measurement methodology...).
Michael Kay
http://www.saxonica.com/
|