Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-12-25
01:08 • Ticket [1090905fff] Avoid sharing cmdNames accross namespaces status still C... artifact: 9a6b492ffc user: msofer
01:05 • Ticket [1090905fff]: 4 changes artifact: 85e2e80d9d user: msofer
01:05 • Add attachment patchLit to ticket [1090905fff] artifact: 87e70d772b user: msofer
00:51 • Closed ticket [1090905fff]: Avoid sharing cmdNames accross namespaces plus 7... artifact: 60cdde3321 user: msofer
00:50 • Ticket [1090905fff]: 4 changes artifact: ba6882b54f user: msofer
2004-12-24
17:50 • New ticket [1090905fff]. artifact: 58fad51e25 user: msofer

Avoid sharing cmdNames accross namespaces

Closed / Accepted1090905fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-24 17:50:36
This patch avoids sharing cmdName objects accross
namespaces, thus increasing the usage of cached
references and reducing the cost of repeated command
name lookups.

There is an obvious memory cost, as there are
previously shared literals that will not be shared now.

The recently namespace.bench shows:

Benchmark 1:8.5a3 /mnt/CVS/tcl_SF_clean/unix/tclsh-head
n 00:00:02 elapsed
Benchmark 2:8.5a3 /mnt/CVS/tcl_SF_clean/unix/tclsh-lit
n 00:00:01 elapsed
000 VERSIONS:      1:8.5a3 2:8.5a3
001 NS alternating    1640    1165
001 BENCHMARKS     1:8.5a3 2:8.5a3
msoferplain2004-12-25 00:50:36
File Added - 113506: patchLit
msoferplain2004-12-25 00:51:13
Logged In: YES 
user_id=148712

Committed
msoferplain2004-12-25 01:05:41
File Deleted - 113506: 



File Added - 113507: patchLit
msoferplain2004-12-25 01:08:46
Logged In: YES 
user_id=148712

Note: forgot to mention another memory cost - the
LiteralEntry struct grew from '2ptrs+1int' to '3ptrs+1int'
Log in (anonymous is fine) to add a comment.

Attachments: