[Patches] [ python-Patches-403514 ] small speedup in Tkinter.Misc._bind

noreply@sourceforge.net noreply@sourceforge.net
Thu, 09 Aug 2001 09:58:08 -0700


Patches item #403514, was opened at 2001-01-30 12:21
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403514&group_id=5470

Category: Tkinter
Group: None
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Markus F.X.J. Oberhumer (mfx)
Assigned to: Martin v. Löwis (loewis)
Summary: small speedup in Tkinter.Misc._bind

Initial Comment:
This patch precomputes _subst_format_str to avoid a call to _string.join() on each invocation of _bind. It gives a small but noticable speed improvement when creating a lot of bindings, such as in the upcoming PySol Mahjongg games.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-08-09 09:58

Message:
Logged In: YES 
user_id=21627

Committed (in slightly modified form) as Tkinter.py 1.153

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-09 09:04

Message:
Logged In: YES 
user_id=6380

Approved. Please don't assign Tkinter patches to effbot!
MvL, can you check it in?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-06-04 13:04

Message:
Logged In: YES 
user_id=21627

I recommend to approve this patch.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403514&group_id=5470