Skip to content
Tcl Source Code View Ticket
Login

View Ticket

OPT varReform: slow lookup by name

Closed / Out of Date1793601fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 16 years ago
Descriptionplain2007-09-13 00:40:10
Tcl_FindNamespaceVar has not been adapted to varReform, it does a few costly obj->string->obj roundtrips.

What is needed is to define a new objType for variable names that separates the namespace and tail parts.
msoferplain2007-09-13 08:38:16
Logged In: YES 
user_id=148712
Originator: YES

See http://paste.tclers.tk/392 and http://www.patthoyts.tk/benchmarks.html
msoferplain2007-10-27 07:26:55
Logged In: YES 
user_id=148712
Originator: YES

HEAD now is more careful about preserving Tcl_Objs; varName caching can still use improving.
msoferplain2011-04-12 09:34:44
allow_comments - 1
Log in (anonymous is fine) to add a comment.