<br><br><div><span class="gmail_quote">On 2/15/07, <b class="gmail_sendername">Dennis Reinhardt</b> <<a href="mailto:DennisR@dair.com">DennisR@dair.com</a>> 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>>Dennis, you said in your example, "The final time.sleep(2000) is to<br>>allow time for garbage collection to reduce memory usage." However,<br>>that certainly will have no effect with CPython, nor do operating
<br>>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> "tune the collection frequency"
<br><br>and other statements on this page to mean that the garbage collector makes<br>periodic sweeps of object references. I do not see what the timing is. 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. 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> ---------------------------------<br>| Dennis | <a href="mailto:DennisR@dair.com">
DennisR@dair.com</a> |<br>| Reinhardt | <a href="http://www.dair.com">http://www.dair.com</a> |<br> ---------------------------------<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 "expert" responses, this might not be an appropriate topic for newbies/beginners night? It'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!