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