LITERAL_ON_HEAP flag unused
Open1706840fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 17 years ago
Descriptionplain2007-04-24 18:42:51
TclRegisterLiteral() accepts a LITERAL_ON_HEAP flag that no caller uses. Will any caller use it? Or is this added complexity we simply do not need?
msoferplain2007-04-25 02:07:55
Logged In: YES user_id=148712 Originator: NO I can't see where we'd want to use in the core; also grepped tbcload and tclcompiler without finding a match. Who else?
msofer Ticket [1706840fff]: 1 change
[History diff]2007-09-13 07:51:04
dgp Ticket [1706840fff]: 1 change
[History diff]2007-11-28 00:52:19
hobbsplain2007-11-28 01:23:04
Logged In: YES user_id=72656 Originator: NO You have to look back in time. This used to be used to know that you had the data in Tcl-controlled heap memory already, and would save another alloc. By doing without ... did we lose efficiency?
msoferplain2008-06-28 20:59:03
Logged In: YES user_id=148712 Originator: NO I do not recall this ever being used, and can't see how it could in the core: if we are compiling, the literal name is part of the source string and we need a fresh copy. In other cases (e.g. varReform variable names), we have a full Tcl_Obj to use as literal and no copy is needed. If no use case appears, I will remove the extra complexity before beta.
msofer Ticket [1706840fff]: 1 change
[History diff]2009-05-01 08:24:18
msofer Ticket [1706840fff]: 1 change
[History diff]2009-05-01 08:26:40
msofer Ticket [1706840fff]: 1 change
[History diff]2009-12-11 10:17:38
Log in (anonymous is fine) to add a comment.