ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TeX capacity exceeded with my macros
@ 2006-12-15 15:55 luigi scarso
  2006-12-15 16:01 ` andrea valle
  2006-12-15 22:59 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: luigi scarso @ 2006-12-15 15:55 UTC (permalink / raw)


I have a
TeX capacity exceeded
message.
I think I'm doing too much,
but before to try another way I would know if
I should enlarge context.

This macro is called ~ 70 000 times
\SetArtValue{1:330128:1007:336:1:d}{}

PS
No problem if none answer to this message.

----------------------------------------------------------------------------
\def\SetArtValue#1#2{%
\edef\Temp{#1}
\beforesplitstring#1\at:\to\Lang\aftersplitstring#1\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\Code\aftersplitstring\Temp\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\RowLabelId\aftersplitstring\Temp\at:\to\Temp%%
\beforesplitstring\Temp\at:\to\RowId\aftersplitstring\Temp\at:\to\Temp%%
\doiffirstcharelse{9}{\Code}{}{%else
\setgvalue{\Code:\RowId}{{\RowLabelId,#2}}
\setxvalue{\Code}{\Code}
\@EA\doifinsetelse\@EA{\@EA\RowId\@EA}\@EA{\the\ArticlesRowIdList}{\relax}{\@EA\appendtoks\RowId,\to\ArticlesRowIdList}
\setxvalue{Array:\the\Row:\the\SummaryTableCountArticles}{(r=\the\Row,c=\the\SummaryTableCountArticles)}%
}
}




\SetArtValue{1:330128:1007:336:1:d}{}

! TeX capacity exceeded, sorry [hash size=60000].
\setgvalue ...andafter \gdef \csname #1\endcsname

<argument> \setgvalue {\Code :\RowId }
                                      {{\RowLabelId ,}} \setxvalue {\Code }{...

\secondoftwoarguments #1#2->#2

\SetArtValue ...\RowId ,\to \ArticlesRowIdList } }

l.21796 \SetArtValue{1:330128:1007:336:1:d}{}
                                             %Doleplate\width - mm
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.


Here is how much of TeX's memory you used:
 25279 strings out of 62456
 270234 string characters out of 659612
 4705997 words of memory out of 5746700
 60000 multiletter control sequences out of 10000+50000
 46713 words of font info for 77 fonts, out of 500000 for 2000
 408 hyphenation exceptions out of 1000
 47i,15n,56p,343b,556s stack positions out of 3000i,1500n,5000p,200000b,15000s
PDF statistics:
 2 PDF objects out of 300000
 0 named destinations out of 131072
 7 words of extra memory for PDF output out of 65536
!  ==> Fatal error occurred, the output PDF file is not finished!

My texmf.cnf
% ConTeXt is a memory hog...
extra_mem_top.context = 2000000
extra_mem_bot.context = 4000000
main_memory.context = 1500000

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-18  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-15 15:55 TeX capacity exceeded with my macros luigi scarso
2006-12-15 16:01 ` andrea valle
2006-12-15 22:59 ` Hans Hagen
2006-12-18  8:19   ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).