Artifacts Associated With Ticket 924097ffffffffffffffffffffffffffffffffff
Ticket change [384acb8223] (rid 112182) by msofer on 2004-03-26 18:35:27:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When appending to a Tcl_Obj, check first if the obj to be appended is {}. In that case, return the untouched original obj - avoid computing it's stringRep or invalidating it's internalRep. With this in place, the inline version of K $x [set x {}] can be written $x[set x {}] for greater performance. Remark that this optimisation can be done at run time, and also at compile time if the obj to be appended is known to be {}. The compile time opt is however rather involved - in the example above it would be possible in principle (as 'set' is compiled, a redefinition will trigger a recompilation of the whole script), but not in $x[unset x] - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "optimise {}-appends"
- type initialized to: "RFE"
Ticket change [fa67a01475] (rid 91869) by dgp on 2004-03-27 02:06:48:
- icomment:
Logged In: YES user_id=80530 the compiletime optimization is probably not possible, without some guarantee that there will not be a write trace on x at run time. (which might raise an error, or set a different, non-empty value).
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [024a93ea8b] (rid 119614) by dkf on 2004-03-29 17:40:18:
- icomment:
Logged In: YES user_id=79902 Start by doing the runtime opt as that should be a safe peephole thing. Compile time optimisation is trickier because of the issues that DGP mentions, though I think there are ways round it. Those particular ideas of mine need more baking first though...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1101827ea2] (rid 95069) by msofer on 2004-09-10 19:49:15:
- closedate changed to: "2004-09-10T12:49:15"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Peephole optimisation to INST_CONCAT1 commited.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "msofer"