ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-Tutor
python-Tutor
Re: [Tutor] Continuously slower program
by Gregor Lingl other posts by this author
Jun 12 2002 9:08PM messages near this date
Re: [Tutor] Continuously slower program | Re: [Tutor] Continuously slower program
----- Original Message ----- 
From: "Michael P. Reilly" <arcege@[...].net> 
To: <tutor@[...].org> 
Sent: Wednesday, June 12, 2002 9:16 PM
Subject: Re: [Tutor] Continuously slower program


>  
>  I'm enclosing the changes that I had made; maybe it can help you.
>  
>    -Arcege
>  

I downloaded and ran your program and it worked well. 
However, when looking at the running the meter one 
observes every 10 to 15 seconds (on my machine) a 
sudden slowdown for half a second approximately. So this,
I think, is a visualization of garbage collection - 
which could be problematic when programming for instance 
actino games or some sorts of animation.

There come the following questions to my mind:

- Is it possible to distribute garbage collection
  smoothely over the entire process or to control
  its occurence in some other way?
- Where comes this g.c. from? Which part of the program
  uses that memory, which has to be cleared up? (Maybe
  some repeatedly generated local variables in the
  math - stuff?)
- Does the g.c. come from the Python interpreter or
  from the underlying Tcl/Tk?

Thanks in advance for your insight creating remarks

Gregor

P.S.: I also observe, that there are Tkinter programs,
which produce really strange error messages when closed
properly (by clicking on the windows-closing icon 'X'):

....
  File "C:\Python22\lib\lib-tk\Tkinter.py", line 1927, in coords
    self.tk.splitlist(
TclError: invalid command name ".8642816.8647440"

whereas others don't do that. Who knows, which 
feature of a TKinter program is responsible
for this unfriendly behaviour and how to avoid it.




_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Seiji Funai
Michael P. Reilly
Gregor Lingl
SA
Michael P. Reilly
SA
Jeff Shannon
SA
Derrick 'dman' Hudson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved