|
2008-06-28
| ||
| 21:09 | • Closed ticket [1056134fff]: Variable traces need updating plus 3 other chang... artifact: c0afcb686c user: msofer | |
|
2008-01-12
| ||
| 20:03 | • Ticket [1056134fff]: 1 change artifact: 738290da01 user: msofer | |
|
2007-10-28
| ||
| 22:40 | • Ticket [1056134fff]: 4 changes artifact: 3514dbcfd4 user: msofer | |
|
2005-11-08
| ||
| 21:22 | • Ticket [1056134fff]: 4 changes artifact: 13f52e5e8f user: msofer | |
|
2004-10-28
| ||
| 14:21 | • New ticket [1056134fff]. artifact: d88fccf11f user: msofer | |
Variable traces need updating
Closed / Fixed1056134fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 18 years ago
Descriptionplain2004-10-28 14:21:17
The code for variable traces has not been updated to reuse the already determined varPtr. Tcl_VarTraceProc has a string interface, so that it has to look up the variable by name if it uses it at all. This is extremely inefficient, and is a handicap for code that relies extensively on variable traces - like Tk. We should define a Tcl_VarTraceObjProc interface that receives the variable name as a Tcl_Obj, thus avoiding parsing and lookup if it is in one of the resolved varName objext types. Note that this would require a TIP.
msoferplain2005-11-08 21:22:49
Logged In: YES user_id=148712 Another thing to update in varTraces: detect when the trace script is actually a command prefix, and treat it as such to avoid concat+reparse at each call. Code may have a lot in common with [interp alias] (using the saved prefix for the call, only copying it elsewhere for nested calls)
msoferplain2007-10-28 22:40:51
Logged In: YES user_id=148712 Originator: YES Parts of this happened with varReform.
msofer Ticket [1056134fff]: 1 change
[History diff]2008-01-12 20:03:39
msofer Closed ticket [1056134fff].
[History diff]2008-06-28 21:09:36
Log in (anonymous is fine) to add a comment.