Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-04-30
22:10 • Closed ticket [1945769fff]: TclOO method call becomes slower plus 3 other ch... artifact: 8d10e019af user: dkf
22:10 • Ticket [1945769fff]: 4 changes artifact: edc466c728 user: dkf
20:00 • Ticket [1945769fff]: 4 changes artifact: 91c2c247ed user: dkf
19:57 • Ticket [1945769fff]: 4 changes artifact: 84fafd134c user: dkf
2008-04-18
21:19 • Add attachment methcall.tcl to ticket [1945769fff] artifact: cebe0361ed user: beric
21:19 • Ticket [1945769fff] TclOO method call becomes slower status still Open with ... artifact: 6dcf61b4a6 user: beric
14:19 • New ticket [1945769fff]. artifact: 94d7d7f368 user: beric

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: