xsl-list
[Top] [All Lists]

Re: [xsl] Efficient way to check sequence membership

2011-03-02 17:10:59
-----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(_at_)inf(_dot_)ed(_dot_)ac(_dot_)uk
                       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-----

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--