<br>On Thu, Mar 3, 2011 at 10:13 AM, Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com">pfd@pfdstudio.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I'm testing some code I wrote to generate .tex files from XML files. These .tex files are then processed via XeLaTeX to produce PDF. The code seems to be working, in that I get a valid .tex file, which then compiles into a valid PDF.</div>
<div><br></div><div>However, running one test of 34,500 pages took 10 hours(!) to compile with XeLaTeX. This was on a 3GHz/4Gb Windows 7 Pro machine, using the XeTeX from MiKTeX 2.9.</div><div><br></div><div>I expected this job to complete in a matter of minutes, but it basically took 100 times longer than I anticipated. The job uses perhaps a dozen PDFs via \includegraphics, but it uses the sames ones over and over again. It also uses \textpos to position blocks of text arbitrarily on the page.</div>
<div><br></div><div>Can anyone think of reasons why it might be so slow? The .tex file I have is 123Mb, but I can create a smaller one, with just 2 pages, if anyone can help diagnose the performance issue.</div></blockquote>
<div><br></div><div>Thanks for the flurry of responses. I have to run out for a while, but I'll do the experiments you've suggested shortly. Here's the header of the .tex file, showing the packages used:</div>
<div><br></div><div><div>\documentclass[letterpaper]{article}</div><div>\usepackage[landscape]{geometry}</div><div>\usepackage{fontspec}</div><div>\usepackage{graphicx}</div><div>\usepackage{xcolor}</div><div>\usepackage{setspace}</div>
<div>\usepackage{grffile}</div><div>\usepackage[absolute]{textpos}</div><div>\usepackage{soul}</div><div>\setlength{\TPHorizModule}{1bp}</div><div>\setlength{\TPVertModule}{\TPHorizModule}</div><div>\setlength{\parindent}{0pt}</div>
<div>\setlength{\unitlength}{1bp}</div><div>\pagestyle{empty}</div></div><div><br></div><div>I'll also create a small (~10 page) version of the file to show what's in there.</div><div><br></div><div>Also, sorry for cross-posting, but I wasn't sure which list best fit this topic.</div>
<div><br></div><div>Thanks again!</div><div><br></div><div>-pd</div><div><br></div><div><br></div><div><br></div></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>