Just for kicks, I've been playing around with running code snippets with and
without the garbage collector enabled, looking to see if it will make any
obvious difference to performance.

So far, I haven't found any.

For instance, I tried:

a = [i**3 for i in range(2000000)]
del a[:]

thinking that garbage collecting almost two million ints would surely show
some performance difference, but it doesn't.

Is anyone able to demonstrate a replicable performance impact due to garbage
collection?



-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to