Hello all. While looking on high memory usage of xslt transformations I've noticed the following strange thing. We profile document two times during build - first we profile to build document for validation in xml subdir, second when we build html we also do profiling since we import profile-chunk.xsl. So I suggest the following patch that will save few megabytes of memory on html build.
Index: Makefile.am =================================================================== RCS file: /cvs/gnome/gimp-help-2/Makefile.am,v retrieving revision 1.86 diff -u -p -r1.86 Makefile.am --- Makefile.am 1 Oct 2006 19:53:44 -0000 1.86 +++ Makefile.am 15 Oct 2006 03:35:20 -0000 @@ -223,7 +223,6 @@ $(patsubst %,$(STAMP_DIR)/html.%.stamp,$ (cd $(top_srcdir)/html/$* && \ $(XSLTPROC) $(XSLTFLAGS) --xinclude \ --stringparam l10n.gentext.default.language $* \ - --stringparam profile.lang $* \ @abs_top_builddir@/stylesheets/plainhtml.xsl ../../xml/$*.xml); @touch $@ Index: stylesheets/plainhtml.xsl.in =================================================================== RCS file: /cvs/gnome/gimp-help-2/stylesheets/plainhtml.xsl.in,v retrieving revision 1.27 diff -u -p -r1.27 plainhtml.xsl.in --- stylesheets/plainhtml.xsl.in 12 Oct 2006 19:44:10 -0000 1.27 +++ stylesheets/plainhtml.xsl.in 15 Oct 2006 03:35:38 -0000 @@ -4,8 +4,8 @@ You may use this file in accordance to the GNU Free Documentation License Version 1.1 which is available from http://www.gnu.org. --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:import href="@STYLEBASE@/xhtml/profile-chunk.xsl" /> <xsl:import href="@STYLEBASE@/html/@AUTOIDX@.xsl"/> + <xsl:import href="@STYLEBASE@/xhtml/chunk.xsl" /> <xsl:param name="html.stylesheet">gimp-help-plain.css gimp-help-screen.css gimp-help-custom.css</xsl:param> <xsl:param name="generate.index">1</xsl:param>
Attachment:
signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=
_______________________________________________ Gimp-docs mailing list Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs