Skip to content
Tcl Source Code Artifact [384acb8223]
Login

Artifact [384acb8223]

Artifact 384acb822340f4381c2e95dbccb647efc2c2e937:

Ticket change [384acb8223] - New ticket [924097ffffffffff|924097ffff] <i>optimise {}-appends</i>. by msofer on 2004-03-26 18:35:27.
D 2004-03-26T18:35:27
J assignee msofer
J cmimetype text/plain
J comment When\sappending\sto\sa\sTcl_Obj,\scheck\sfirst\sif\sthe\sobj\sto\nbe\sappended\sis\s{}.\sIn\sthat\scase,\sreturn\sthe\suntouched\noriginal\sobj\s-\savoid\scomputing\sit's\sstringRep\sor\ninvalidating\sit's\sinternalRep.\nWith\sthis\sin\splace,\sthe\sinline\sversion\sof\s\n\s\s\sK\s$x\s[set\sx\s{}]\ncan\sbe\swritten\s\n\s\s\s$x[set\sx\s{}]\nfor\sgreater\sperformance.\nRemark\sthat\sthis\soptimisation\scan\sbe\sdone\sat\srun\stime,\nand\salso\sat\scompile\stime\sif\sthe\sobj\sto\sbe\sappended\sis\nknown\sto\sbe\s{}.\sThe\scompile\stime\sopt\sis\showever\srather\ninvolved\s-\sin\sthe\sexample\sabove\sit\swould\sbe\spossible\sin\nprinciple\s(as\s'set'\sis\scompiled,\sa\sredefinition\swill\ntrigger\sa\srecompilation\sof\sthe\swhole\sscript),\sbut\snot\sin\n\s\s\s$x[unset\sx]\n\n\s\s\s
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 47.\sBytecode\sCompiler
J title optimise\s{}-appends
J type RFE
K 924097ffffffffffffffffffffffffffffffffff
U msofer
Z 90d47ed006d9a14cf1a86f254105c5dd