#3981 TclOO method call becomes slower

obsolete: 8.5.2
closed-fixed
5
2008-04-30
2008-04-18
No

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

Discussion

  • Donal K. Fellows

    Logged In: YES
    user_id=79902
    Originator: NO

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

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902
    Originator: NO

    It's a memory leak. Darn it!

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902
    Originator: NO

    Was recompiling methods far too often.

     
  • Donal K. Fellows

    • status: open --> closed-fixed