<br><br><div><span class="gmail_quote">On 2/15/07, <b class="gmail_sendername">Dennis Reinhardt</b> &lt;<a href="mailto:DennisR@dair.com">DennisR@dair.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At 02:21 PM 2/15/2007, Chad Netzer wrote:<br><br>&gt;Dennis, you said in your example, &quot;The final time.sleep(2000) is to<br>&gt;allow time for garbage collection to reduce memory usage.&quot;&nbsp;&nbsp;However,<br>&gt;that certainly will have no effect with CPython, nor do operating
<br>&gt;system memory allocators work that way.<br><br><br>I read at <a href="http://docs.python.org/lib/module-gc.html">http://docs.python.org/lib/module-gc.html</a> where it says<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;tune the collection frequency&quot;
<br><br>and other statements on this page to mean that the garbage collector makes<br>periodic sweeps of object references.&nbsp;&nbsp;I do not see what the timing is.&nbsp;&nbsp;I<br>did provide for a window in this code so that if such a sweep resulted in
<br>lowering memory requirements, I had provided for time to go by.<br><br>Informal testing on a large system (not this toy example) where I set the<br>gc collection interval to every minute did not materially affect the<br>
results.&nbsp;&nbsp;In this toy example, I had experimented with explicit del() calls<br>and took them out of the code as they made no improvement.<br><br>Dennis<br><br><br>&nbsp;&nbsp;---------------------------------<br>| Dennis&nbsp;&nbsp;&nbsp;&nbsp;| <a href="mailto:DennisR@dair.com">
DennisR@dair.com</a>&nbsp;&nbsp;&nbsp;&nbsp;|<br>| Reinhardt | <a href="http://www.dair.com">http://www.dair.com</a> |<br>&nbsp;&nbsp;---------------------------------<br><br>_______________________________________________<br>Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>To change your subscription options or unsubscribe:<br><a href="http://mail.python.org/mailman/listinfo/baypiggies">http://mail.python.org/mailman/listinfo/baypiggies
</a><br></blockquote></div><br><br clear="all">May I suggest that, given the variety of &quot;expert&quot; responses, this might not be an appropriate topic for newbies/beginners night? It&#39;s a great topic for discussion in general...
<br><br>-- <br>cordially,<br>Anna<br>--<br>It is fate, but call it Italy if it pleases you, Vicar!