garbage collector

Ken Seehof kens at sightreader.com
Thu Jul 26 15:39:35 EDT 2001


Sounds like your program might benefit from some refactoring aiming at
reducing the life time of your objects.  I recommend learning about weak
references.  Also, maybe you could use a database instead of a dictionary
somewhere (this could improve performance if you are abusing RAM).

- Ken Seehof

----- Original Message ----- 
From: "franck delarue" <frdelarue2000 at yahoo.fr>
To: <Python-list at python.org>
Sent: Thursday, July 26, 2001 7:29 AM
Subject: garbage collector


> hi,
> I use python1 with a lot of object (dictionnairies +
> lists) and my program takes 3 or 4 hours to execute on
> a 4 processors (700 mghz) and 2 Go Ram machine (linux
> red hat).
> The problem is that when the program is finished,
> python still continues to delete the objects (I've put
> some "print" to see when the "del" function is
> executed) during about 30 minutes.
> Is that normal ? Is there a solution to stop the
> program correctly ? ("ctrl+alt+del" or "kill -9 XXX"
> works but i don't feel satisfied) 
> 
> 
> =====
> __________________________________    ___ 
> \                                 \  |  _  |  \
>  \  F R A N C K     D E L A R U E  \ | |_  | | |
>  /  + - + - + -     + - + - + - +  / |  _  | | |
> /_________________________________/  |_|   |__/
> 
> ___________________________________________________________
> Do You Yahoo!? -- Vos albums photos en ligne, 
> Yahoo! Photos : http://fr.photos.yahoo.com
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list