<br><div class="gmail_quote">On Thu, Mar 3, 2011 at 10:53 AM, Martin Schröder <span dir="ltr"><<a href="mailto:martin@oneiros.de">martin@oneiros.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/3/3 William Adams <<a href="mailto:will.adams@frycomm.com">will.adams@frycomm.com</a>>:<br>
<div class="im">> 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>(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><br></div><div>So the numbers are clearly better with draft on, but not by nearly enough to account for the hours and hours this job ran.  Does draft mode actually eliminate access to the external PDF files each time they're included?</div>
<div><br></div><div>Jonathan Kew suggested putting each graphic in a \box, and simplying copying the boxes where needed.  Does that actually eliminate redundant access to the external PDF files?  That would be great.</div>
<div><br></div><div>Also, William Adams mentioned that calling \fontspec can be very expensive, and I'm definitely doing that over and over again.  I guess there's a way to cache the font settings to eliminate a lot of that overhead when using the same font repeatedly.  (Unfortunately, when processing the XML, I have no way of knowing which is the 'normal' font for the document.)</div>
<div><br></div><div>Thank you!</div></div><div>-pd</div><div><br></div>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div>
<div style="font-size:10.8333px"><br></div></span><br>