From 5e883e3c4f5053bde0a5652e1589f344dc96ad81 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 5 Oct 2023 10:23:08 -0400 Subject: [PATCH] expand-sequence: Invoke is-expandable only once per expansion head `is-expandable` is an expensive XPath, and it was being invoked twice per node: one for each complementary `match`. DEV-10806 --- src/preproc/expand/expand-sequence.xsl | 33 +++++++++++++------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/preproc/expand/expand-sequence.xsl b/src/preproc/expand/expand-sequence.xsl index 96d70ff1..829104de 100644 --- a/src/preproc/expand/expand-sequence.xsl +++ b/src/preproc/expand/expand-sequence.xsl @@ -172,17 +172,30 @@ --> @@ -196,20 +209,6 @@ so we need only continue to expand nodes as necessary. --> - - - -