<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, debug - remember table sizes?</title>
    <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 09:02:46 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 09:02:46 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, debug - remember table sizes?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, debug - remember table sizes?</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes</link>
    </image>
    <item>
      <title>One solution</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes?ref=Feed:MaplePrimes:debug - remember table sizes?:Comments#comment75949</link>
      <itunes:summary>How 'bout this hack:
&lt;pre&gt;
SummaryRememberTables := proc()
local p,lst;
    for lst in sort([seq([p,length(op(4,eval(p)))]
                         , p in anames('procedure'))]
                    , (a,b) -&amp;gt; evalb(a[2] &amp;gt; b[2])) do

        if lst[2]=1 then break end if;
        printf("%20a  %-d\n", lst[]);
    end do;
end proc:

f1 := proc(x) option remember; x end proc:
f2 := proc(x) option remember; (x,x^2) end proc:

for i to 100 do
    f1(i);
    f2(i);
end do:

SummaryRememberTables();
                  f2  1437
                  f1  779
&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, debug - remember table sizes?</description>
      <guid>75949</guid>
      <pubDate>Sun, 19 Aug 2007 22:59:01 Z</pubDate>
      <itunes:author>Joe
 Riel
</itunes:author>
      <author>Joe
 Riel
</author>
    </item>
    <item>
      <title>thanks</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes?ref=Feed:MaplePrimes:debug - remember table sizes?:Comments#comment85133</link>
      <itunes:summary>This seems to give me not only my own procs, but Maple's too.  But if I just take the top 20 or so, it will do what I want.

So I've got the hundred-million-size remember table... Something to work on reducing.
--- 
G A Edgar
</itunes:summary>
      <description>The latest comments added to the Post, debug - remember table sizes?</description>
      <guid>85133</guid>
      <pubDate>Mon, 20 Aug 2007 00:40:36 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>culling</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes?ref=Feed:MaplePrimes:debug - remember table sizes?:Comments#comment91791</link>
      <itunes:summary>Depending on how you created your procedures, you could change the second argument of the seq call to
&lt;pre&gt;
p in remove(type, {anames('procedure')}, 'protected')
&lt;/pre&gt;
That won't work, alas, if your procedures are exports of a module with option 'package'; that causes the exports to be protected.  If that was the case, though, you could just use the package exports, {exports(pkgname)} in the seq.</itunes:summary>
      <description>The latest comments added to the Post, debug - remember table sizes?</description>
      <guid>91791</guid>
      <pubDate>Mon, 20 Aug 2007 01:25:08 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>culling via anames(user)</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes?ref=Feed:MaplePrimes:debug - remember table sizes?:Comments#comment91792</link>
      <itunes:summary>Perhaps &lt;code&gt;anames(user)&lt;/code&gt; would be a more precise way of filtering?</itunes:summary>
      <description>The latest comments added to the Post, debug - remember table sizes?</description>
      <guid>91792</guid>
      <pubDate>Mon, 20 Aug 2007 03:46:36 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>nice</title>
      <link>http://www.mapleprimes.com/posts/40940-Debug--Remember-Table-Sizes?ref=Feed:MaplePrimes:debug - remember table sizes?:Comments#comment91793</link>
      <itunes:summary>Excellent.   So the proper second argument for the seq should be&lt;pre&gt;
p = select(type, {anames('user')}, 'procedure')&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, debug - remember table sizes?</description>
      <guid>91793</guid>
      <pubDate>Mon, 20 Aug 2007 04:19:44 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
  </channel>
</rss>