|
Subject: Re: [xsl] Help, my problem is n-cubed ... and so is my XSLT code From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 15 Mar 2025 21:58:59 -0000 |
On Fri, Mar 14, 2025 at 04:48:23PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit:
> > Tangentially, is there a use case where xsl:key is expected to be
> > preferable in performance terms to using maps?
>
> No, I don't think so. Some people may find keys more intuitive, and they're probably easier to manage if you need one-index-per-document with multiple documents, but I don't think they will ever give a performance benefit.
>
> Haven't measured it though.
>
> One exception may be where you use the same "lookup document" for multiple transformations using the same stylesheet - Saxon will then try to reuse the xsl:key index. But you can organize that for yourself using maps quite easily -- the simplest way of doing it is simply to pass a parsed JSON document as the lookup index.
Thank you!
Appreciate the information.
-- Graydon
--
Graydon Saunders | graydonish@xxxxxxxxxxxx
\xDE\xE6s ofer\xE9ode, \xF0isses sw\xE1 m\xE6g.
-- Deor ("That passed, so may this.")
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Help, my problem is n-cub, Michael Kay mike@xxx | Thread | Re: [xsl] Help, my problem is n-cub, Roger L Costello cos |
| Re: [xsl] How to create xsl:key tha, Wendell Piez wapiez@ | Date | Re: [xsl] Help, my problem is n-cub, Roger L Costello cos |
| Month |