src/current/compiler/js.xsl: Remove inline defaults for anyValue

This not only reduces file size, but also has a significant performance
benefit for the UI, which is almost entirely classifications.  A run for one
of our systems was reduced from 1m30s to 11s from this change.
master
Mike Gerwitz 2020-01-21 00:02:16 -05:00
parent 46d5ed286c
commit 7a2ce00ed5
1 changed files with 10 additions and 10 deletions

View File

@ -560,7 +560,15 @@
<value-of select="$compiler:nl" />
<variable name="dest">
<text>args['</text>
<value-of select="@yields" />
<text>']</text>
</variable>
<if test="not( $noclass )">
<sequence select="concat( $dest, '=[];', $compiler:nl )" />
<if test="@preproc:generated='true'">
<text>gen</text>
</if>
@ -582,12 +590,6 @@
select="for $match in $criteria
return $symtable-map( $match/@on )" />
<variable name="dest">
<text>args['</text>
<value-of select="@yields" />
<text>']</text>
</variable>
<!-- generate boolean value from match expressions -->
<choose>
<!-- if classification criteria were provided, then use them -->
@ -852,11 +854,9 @@
</otherwise>
</choose>
<text>, ( </text>
<text>, </text>
<value-of select="$yieldto" />
<text> || ( </text>
<value-of select="$yieldto" />
<text> = [] ) ), </text>
<text>, </text>
<!-- if this match is part of a classification that should yield a matrix,
then force a matrix set -->