<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Unicode MS">Hello</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">I haven't followed this closely, but it
might be worth having a look at how you position text randomly on the page
(unless you have already, in which case apologies). In pre-XeTeX days I
used PSTricks to produce the cropmarks and date/time stamp on each page
(essentially using \rput to put the rules and text at different positions),
and old plain TeX processed quite large books in just a few seconds. When
I moved over to XeTeX (I still use plain) I soon identified PSTricks as the
culprit when books began to crawl along page by page - so I now typically use
Edmac's \cropmarks for the cropmarks and the a combination of plain TeX's
\smash \raise, and sometimes \llap or \rlap for the date/time stamp line,
and everything works as expected (with a very noticeable slowing down on
particular pages if I have a few lines of PSTricks code somewhere).</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">I recall you said at the start that you were
using some package to position text randomly, and wonder if that is contributing
to the processing time.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Best</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">John</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=pfd@pfdstudio.com href="mailto:pfd@pfdstudio.com">Peter Davis</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=texhax@tug.org
href="mailto:texhax@tug.org">TeXhax</A> ; <A title=xetex@tug.org
href="mailto:xetex@tug.org">xetex@tug.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> 05 March 2011 13:33</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [XeTeX] [texhax]
Throughput</DIV>
<DIV><BR></DIV><BR>
<DIV class=gmail_quote>On Fri, Mar 4, 2011 at 5:58 PM, Peter Davis <SPAN
dir=ltr><<A
href="mailto:pfd@pfdstudio.com">pfd@pfdstudio.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR>
<DIV class=gmail_quote>
<DIV>
<DIV></DIV>
<DIV class=h5>On Fri, Mar 4, 2011 at 2:38 PM, Peter Davis <SPAN
dir=ltr><<A href="mailto:pfd@pfdstudio.com"
target=_blank>pfd@pfdstudio.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR><BR>
<DIV class=gmail_quote>
<DIV>On Thu, Mar 3, 2011 at 4:07 PM, Peter Davis <SPAN dir=ltr><<A
href="mailto:pfd@pfdstudio.com"
target=_blank>pfd@pfdstudio.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR>
<DIV class=gmail_quote>
<DIV>On Thu, Mar 3, 2011 at 10:53 AM, Martin Schröder <SPAN
dir=ltr><<A href="mailto:martin@oneiros.de"
target=_blank>martin@oneiros.de</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>2011/3/3 William Adams <<A
href="mailto:will.adams@frycomm.com"
target=_blank>will.adams@frycomm.com</A>>:<BR>
<DIV>> Have you tried processing it w/o including the
graphics?<BR><BR></DIV>That would be my first guest. Try with the
draft option...<BR></BLOCKQUOTE>
<DIV><BR></DIV></DIV>
<DIV>(NB: Just replying to texhax, to avoid cross-posting issues I seem
to have triggered.)</DIV>
<DIV><BR></DIV>
<DIV>I tried running 200 pages, with and without draft mode.
Specifically, I put draft mode on the graphicx package:</DIV>
<DIV><BR></DIV>
<DIV>\includepackage[draft]{graphicx}</DIV>
<DIV><BR></DIV>
<DIV>I used the --time-statistics option on the xelatex command to get
timings. The results are:</DIV>
<DIV><BR></DIV>
<DIV>Non-draft: </DIV>
<DIV>gross: 111634 ms, user mode: 17050 ms, kernel mode: 50778 ms,
total: 67828</DIV>
<DIV>Draft: </DIV>
<DIV>gross: 77941 ms, user mode: 12589 ms, kernel mode: 27300 ms,
total: 39889</DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV></DIV>
<DIV>Now using \newfontfamily *and* [draft]{graphicx} ...</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>gross execution time: 45458 ms</DIV>
<DIV>user mode: 8658 ms, kernel mode: 25006 ms, total: 33664</DIV></DIV>
<DIV><BR></DIV>
<DIV>A definite improvement. Now to try etex and box registers for
the external graphics.</DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV><BR></DIV></DIV></DIV>
<DIV>Ok, I tried using \savebox, and got this:</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>gross execution time: 3996 ms</DIV>
<DIV>user mode: 1123 ms, kernel mode: 436 ms, total: 1559</DIV></DIV>
<DIV><BR></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>I fixed the random name generator (which generates unique names for the
saveboxes), and now the entire 35,000 page job runs in 8 minutes. Quite
a difference from over 10 hours! This was just from two optimizations:
using \newfontfamily and using \newsavebox for all the graphics.</DIV>
<DIV><BR></DIV>
<DIV>I'd still like to get it down to 2 or 3 minutes, but I'm in range
now.</DIV>
<DIV><BR></DIV>
<DIV>Thank you *VERY* much for all the help suggestions and information here.
(Sorry for cross-posting again, but I wanted to reach everyone who
commented. Please don't reply to both lists.)</DIV>
<DIV><BR></DIV>
<DIV>Cheers,</DIV>
<DIV>-pd</DIV>
<DIV><BR></DIV></DIV><BR>-- <BR><SPAN
style="BORDER-COLLAPSE: collapse; FONT-FAMILY: arial, sans-serif">----
<DIV>The Tech Curmudgeon</DIV>
<DIV><A style="COLOR: rgb(17,65,112)" href="http://www.techcurmudgeon.com/"
target=_blank>http://www.techcurmudgeon.com</A></DIV>
<DIV style="FONT-SIZE: 10px"><BR></DIV></SPAN><BR>
<P>
<HR>
<P></P><BR><BR>--------------------------------------------------<BR>Subscriptions,
Archive, and List information, etc.:<BR>
http://tug.org/mailman/listinfo/xetex<BR></BLOCKQUOTE></BODY></HTML>