Overview
| Artifact ID: | 3ee4615bcaaec79946644419861a709d506cfc2c |
|---|---|
| Ticket: | 716b427f76f8f97a8d9a06043903c53bb2b592c2
Suboptimal bytecode for $a[unset a] |
| User & Date: | dgp on 2017-06-06 16:41:50 |
Changes
- icomment:
This is tied into the machinery for restarting after some bytecode execution bumps the compile epoch. At that point the start of the next command has to be found so that direct eval, or recompilation, can take place at that point. The bytecode considers that potential restart point as a TargetAddress. Problem here is that calculation is not in fact pointing to the next command, but at the first bytecode following the current command, which is not a command at all, but the concat operation to form a word out of substituted pieces. Repairing this seems to be a moderately sophisticated upgrade of the optimizer at least. Worse, it may be tied in to an actual bug where the compile epoch bump during substitution doesn't take effect on the command for which the substitution is being done. See https://core.tcl.tk/tcl/tktview/9a2bc209faf87b2f156d1971447f59e294184f9e
- login: "dgp"
- mimetype: "text/plain"