Good afternoon,<div><br></div><div>So far so good for the document sizes we are currently using.</div><div><br></div><div> :) Many many thanks!</div><div><br></div><div>FYI: </div><div><br></div><div>Did a test on a merged "super-document", and it died while writing the idx file out.</div>
<div><br></div><div><div>wc -w 000000207.utex </div><div>1666714 000000207.utex</div></div><div><br></div><div>Interested in the file?</div><div><br></div><div><div class="gmail_quote">On Thu, Feb 10, 2011 at 10:16 AM, Paul Isambert <span dir="ltr"><<a href="mailto:zappathustra@free.fr">zappathustra@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Le 10/02/2011 15:58, Michael Joyner a écrit :
<div><div></div><div class="h5"><blockquote type="cite"><br>
<br>
<div class="gmail_quote">On Thu, Feb 10, 2011 at 8:21 AM, Paul
Isambert <span dir="ltr"><<a href="mailto:zappathustra@free.fr" target="_blank">zappathustra@free.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Le 10/02/2011 04:39, Ross Moore a écrit :
<div>
<div><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hi Michael, and Heiko,<br>
<br>
On 10/02/2011, at 1:49 PM, Michael Joyner wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
On Wed, Feb 9, 2011 at 9:30 PM, Ross Moore<<a href="mailto:ross.moore@mq.edu.au" target="_blank">ross.moore@mq.edu.au</a>>
wrote:<br>
<br>
<br>
See how large you can set the "save size" parameter.<br>
Multiply by 10, or 100, or 1000... .<br>
<br>
I'd say you are exploring to the boundaries of what
XeTeX<br>
is capable of doing.<br>
<br>
<br>
save size won't go over 80,000 :(<br>
</blockquote>
OK.<br>
<br>
But we don't need it now.<br>
Here's the cause of the problem.<br>
<br>
The package source xesearch.sty has a technical
problem.<br>
The macros \xs@String and \xs@Stack are used as
variables,<br>
repeatedly changing their expansions. However, sometimes
the code<br>
uses \edef\xs@String{...} but mostly it uses
\xdef\xs@String{...}.<br>
<br>
This mixture of local/global scope is what causes the
loss of<br>
string space, because an \edef instance requires the
previous \xdef<br>
instance to be retained, not discarded. Then comes
another \xdef<br>
which may release the previous \edef's memory, but not
that of the<br>
\xdef prior to the \edef . Hence memory usage grows.<br>
<br>
By making all instances become global, I now get your
document to<br>
finish, along with the Index page.<br>
<br>
Here's the memory usage:<br>
<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Here is how much of TeX's memory you used:<br>
26092 strings out of 494542<br>
451878 string characters out of 3157455<br>
480737 words of memory out of 3000000<br>
29083 multiletter control sequences out of
15000+200000<br>
8574 words of font info for 51 fonts, out of
3000000 for 9000<br>
669 hyphenation exceptions out of 8191<br>
40i,7n,43p,1687b,9339s stack positions out of
5000i,500n,10000p,200000b,50000s<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<br>
<br>
Here's the patch needed to modify xesearch.sty .<br>
<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Does this look right?</div>
</div>
</blockquote>
<br></div></div>
This looks ok to me, except:<br>
<br>
<blockquote type="cite">
<div class="gmail_quote">
<div>@@ -975,7 +975,7 @@</div>
<div>- \def\xs@String{#2}%</div>
<div>+ \gdef\xs@String{#2}%</div>
</div>
</blockquote>
<br>
<blockquote type="cite">
<div class="gmail_quote">
<div>@@ -983,7 +983,7 @@</div>
<div>- \def\xs@Stack{#2}%</div>
<div>+ \gdef\xs@Stack{#2}%<br>
</div>
</div>
</blockquote>
<br>
(I've turned \xdef into \gdef). Now, if your document works
properly, I'll release the patch.<br>
Thanks again,<br>
Paul<br>
<br>
</div>
<br><br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><br></div>