[xslt] Slow xsltproc XInclude of large text files

Platform: 1.7GHz Pentium M, 1GB RAM, debian testing/unstable,
	  xsltproc 1.1.2-3
	  libxslt1.1 1.1.2-3
	  libxml2 2.6.7-1

I'm creating a website using DocBook Website.  Some of the pages are
wrappers around plain textfiles, where I use XInclude to pull in the
text file inside a <programlisting> element, like this:
  <programlisting><xi:include href="../../src/IDEAS" parse="text" encoding="iso-8859-1"/></programlisting>

This works great for small files, but is slow for large files, even on
a fast machine (a 1.7GHz Pentium M is equvalent to a 2.5GHz P4).

Can this be fixed by an upgrade to a newer version?  Does a workaround

xltproc uses 4.62 user seconds when including a 75kB file.  I haven't
yet had time to wait for it to finish including an 800kB file, but top
reports xsltproc spinning along at a 99.5% CPU usage.  The xsltproc
process doesn't increase much in size, though.  It stays at a steady
6.7 to 6.8MB


- Steinar

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]