|
Subject: Re: [xsl] Efficient way to check sequence membership From: ht@xxxxxxxxxxxx (Henry S. Thompson) Date: Wed, 02 Mar 2011 23:10:44 +0000 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Carlisle writes:
> personally I'd just use <xsl:sequence select="$s=$stops"/>
> and leave it to the query optimiser to make this common requirement
> efficient rather than using a more complicated idiom and then hoping
> the query optimiser recognises it.
That is only 1ms faster on average that the "some $s . . ."
alternative, i.e. still more than a factor of 4 slower than the
fastest version.
I'll try Dimitri's binary version tomorrow. . .
ht
- --
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 651-1426, e-mail: ht@xxxxxxxxxxxx
URL: http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged
spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFNbs53kjnJixAXWBoRAssNAJ9ThvXiZShnuYUlBo8Po3bCGgh6NgCdGI2K
V5ZvumgvesqS9XAcudXkcIo=
=q0UI
-----END PGP SIGNATURE-----
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Efficient way to check se, David Carlisle | Thread | Re: [xsl] Efficient way to check se, Henry S. Thompson |
| Re: [xsl] Efficient way to check se, David Carlisle | Date | Re: [xsl] Efficient way to check se, Henry S. Thompson |
| Month |