Re: question on freeing memory with xmlroff

Tony Graham <[email protected]> Thu, 10 Dec 2009 10:06:21 +0000
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
On Thu, Dec 10 2009 00:56:03 +0000, [email protected] wrote:
> I am new to using xmlroff, and we have a doc with 1000 pages, anyone know how
> to regulate

Welcome to xmlroff and the xmlroff-list.

> the memory use of processing the large doc? I was experiment with using
> multiple fo:page-sequence
>
> to break the loop down, but it didn't seem to impact the amount of memory
> xmlroff is cosuming.

xmlroff is not good on memory consumption.  Actually, as you've
observed, it's good at memory consumption and not so good on freeing it.

There is a 'memory' branch in Subversion [1] where I've done some work
on reducing memory, but that branch was based on xmlroff 0.5.3, so
there'll be other differences between it and the current trunk code.

More could be done, e.g., using weak references between the FO tree and
the area tree and having a pool for PangoLayouts.  Unfortunately for
xmlroff, most of my free time at present is taken up with XSL FO 2.0
work.

Regards,


Tony Graham                         [email protected]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


[1] http://xmlroff.org/browser/branches/memory/xmlroff