Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclOO method call becomes slower

Closed / Fixed1945769fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-04-18 14:19:25
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
bericplain2008-04-18 21:19:26
File Added - 275067: methcall.tcl
dkfplain2008-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
dkfplain2008-04-30 20:00:17
Logged In: YES 
user_id=79902
Originator: NO

It's a memory leak. Darn it!
dkfplain2008-04-30 22:10:52
Logged In: YES 
user_id=79902
Originator: NO

Was recompiling methods far too often.
dkf Closed ticket [1945769fff]. [History diff]2008-04-30 22:10:53
Log in (anonymous is fine) to add a comment.

Attachments: