A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/043237.html below:

[Python-Dev] Python GC/type()/weakref mystery

[Python-Dev] Python GC/type()/weakref mysteryAahz aahz at pythoncraft.com
Thu Mar 18 12:18:32 EST 2004
On Thu, Mar 18, 2004, Kevin Jacobs wrote:
>
> Varying the value of N also results in strange results:
> 
>  for i in range(6):
>    leak_test(10**i, new_type)
> 
> Produces:
>  Leak detected (N=1, 1 new objects)
>  Leak detected (N=10, 9 new objects)
>  Leak detected (N=100, 90 new objects)
>  Leak detected (N=1000, 78 new objects)
>  Leak detected (N=10000, 9 new objects)
>  Leak detected (N=100000, 8 new objects)

This looks to me like standard boundary conditions for GC; GC normally
only gets provoked when more than gc.get_threshold() objects have been
created than deleted.  What makes you think something unusual is
happening?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"usenet imitates usenet"  --Darkhawk

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4