Tcl Source Code

View Ticket
Login
Ticket UUID: 1945769
Title: TclOO method call becomes slower
Type: Bug Version: obsolete: 8.5.2
Submitter: beric Created on: 2008-04-18 14:19:25
Subsystem: 35. TclOO Package Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-04-30 22:10:53
Resolution: Fixed Closed By: dkf
    Closed on: 2008-04-30 15:10:53
Description:
There is a strange/big problem with TclOO.
Source the attached script and do:

time {M refresh} 50

multiple times. It becomes slower.

% time {M refresh} 50
545.24 microseconds per iteration
% time {M refresh} 50
981.28 microseconds per iteration
% time {M refresh} 50
1396.18 microseconds per iteration
% time {M refresh} 50
2004.48 microseconds per iteration
% time {M refresh} 50
2767.96 microseconds per iteration
% time {M refresh} 50
4711.52 microseconds per iteration
% time {M refresh} 50
9073.38 microseconds per iteration
% time {M refresh} 50
13379.06 microseconds per iteration
User Comments: dkf added on 2008-04-30 22:10:52:
Logged In: YES 
user_id=79902
Originator: NO

Was recompiling methods far too often.

dkf added on 2008-04-30 20:00:17:
Logged In: YES 
user_id=79902
Originator: NO

It's a memory leak. Darn it!

dkf added on 2008-04-30 19:57:06:
Logged In: YES 
user_id=79902
Originator: NO

Does not seem to be straight method calls causing it; still investigating

beric added on 2008-04-18 21:19:26:

File Added - 275067: methcall.tcl

Attachments: