Remove unnecessary debug output (writes are very slow)
This shaves ~1m off of the total build time for our largest system. Output is impressively slow. Around this point in time, we have the following profile from V8's sampling profiler: [JavaScript]: ticks total nonlib name 36 2.8% 10.7% LazyCompile: *anyValue [...]/ui/package.strip.new.js:31020:22 3 0.2% 0.9% LazyCompile: *m1v1u [...]/ui/package.strip.new.js:30941:19 2 0.2% 0.6% LazyCompile: *precision [...]/ui/package.strip.new.js:30934:23 1 0.1% 0.3% LazyCompile: *vu [...]/ui/package.strip.new.js:30964:16 1 0.1% 0.3% LazyCompile: *init_defaults [...]/ui/package.strip.new.js:31341:27master
parent
d828ad6a1f
commit
e59a3b3ff5
|
@ -68,7 +68,9 @@
|
|||
<preproc:repass-record />
|
||||
-->
|
||||
|
||||
<!-- output is slow and this happens a lot
|
||||
<message>[preproc] *REPASS*</message>
|
||||
-->
|
||||
|
||||
<!-- perform the repass -->
|
||||
<apply-templates select="$nodeset" mode="preproc:macropass">
|
||||
|
|
|
@ -594,10 +594,6 @@
|
|||
<copy>
|
||||
<sequence select="@*" />
|
||||
|
||||
<message>
|
||||
<text>[preproc] *resolving symbol attributes...</text>
|
||||
</message>
|
||||
|
||||
<apply-templates mode="preproc:resolv-syms">
|
||||
<with-param name="orig-root" select="$orig-root" />
|
||||
<with-param name="symtable-map" select="$symtable-map" tunnel="yes" />
|
||||
|
@ -612,20 +608,6 @@
|
|||
<choose>
|
||||
<!-- repass scheduled; go for it -->
|
||||
<when test="$repass">
|
||||
<message>[preproc] *SYM REPASS*</message>
|
||||
<message>
|
||||
<text>[preproc] The following </text>
|
||||
<value-of select="count( $repass )" />
|
||||
<text> symbol(s) are still unresolved:</text>
|
||||
</message>
|
||||
|
||||
<for-each select="$repass">
|
||||
<message>
|
||||
<text>[preproc] - </text>
|
||||
<value-of select="@ref" />
|
||||
</message>
|
||||
</for-each>
|
||||
|
||||
<apply-templates select="$result" mode="preproc:resolv-syms">
|
||||
<with-param name="orig-root" select="$orig-root" />
|
||||
<with-param name="rpcount" select="$rpcount + 1" />
|
||||
|
|
|
@ -119,10 +119,6 @@
|
|||
<sequence select="@*" />
|
||||
|
||||
<variable name="new">
|
||||
<message>
|
||||
<text>[preproc/symtable] discovering symbols...</text>
|
||||
</message>
|
||||
|
||||
<preproc:syms>
|
||||
<apply-templates mode="preproc:symtable">
|
||||
<!-- we only need this param for the root children, so this is the only
|
||||
|
@ -309,8 +305,6 @@
|
|||
</apply-templates>
|
||||
</preproc:symtable>
|
||||
|
||||
<message select="'[preproc/symtable] done.'" />
|
||||
|
||||
<!-- copy all of the original elements after the symbol table; we're not
|
||||
outputting them as we go, so we need to make sure that we don't get
|
||||
rid of them; discard any existing symbol table -->
|
||||
|
@ -456,10 +450,6 @@
|
|||
<param name="new" as="element( preproc:syms )" />
|
||||
<param name="this-pkg" as="element( lv:package )" />
|
||||
|
||||
<message>
|
||||
<text>[preproc/symtable] processing symbol table...</text>
|
||||
</message>
|
||||
|
||||
<variable name="cursym" as="element( preproc:sym )*"
|
||||
select="preproc:symtable/preproc:sym[
|
||||
not( @held = 'true' ) ]" />
|
||||
|
@ -549,8 +539,6 @@
|
|||
</choose>
|
||||
</for-each>
|
||||
</preproc:syms>
|
||||
|
||||
<message select="'[preproc/symtable] done processing symbol table.'" />
|
||||
</template>
|
||||
|
||||
|
||||
|
@ -606,12 +594,6 @@
|
|||
assertions, resolve relative paths -->
|
||||
<variable name="import-default-path" select="$import-path" />
|
||||
|
||||
<message>
|
||||
<text>[preproc/symtable] importing symbol table of </text>
|
||||
<value-of select="$import-path" />
|
||||
<text>...</text>
|
||||
</message>
|
||||
|
||||
<!-- attempt to import symbols from the processed package -->
|
||||
<if test="not( $syms )">
|
||||
<message terminate="yes">
|
||||
|
|
|
@ -414,11 +414,6 @@
|
|||
<variable name="name" select="concat( '___i', generate-id(.), '___' )" />
|
||||
<variable name="inline" select="." />
|
||||
|
||||
<message>
|
||||
<text>[preproc] preparing inline template </text>
|
||||
<value-of select="$name" />
|
||||
</message>
|
||||
|
||||
<!-- generate template -->
|
||||
<lv:template name="{$name}" desc="Inline template"
|
||||
preproc:from-inline="{$name}"
|
||||
|
|
Loading…
Reference in New Issue