Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7f751d3c2b313164637f8fccdfdb22af4bac628
Ticket: 1794073fffffffffffffffffffffffffffffffff
[return -level 0] improve bytecode
User & Date: dgp on 2007-09-13 18:06:58
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    kbkconcat slightly faster than subst - both significantly faster than either format or return -level 0
    dgpas aliases, or directly?
    kbkas aliases.
    tclguyis that because return -level 0 won't be bytecoded?
    tclguyand if so, can't that be easily corrected?
    dgpok, I expect non-aliased [concat] to be the winner then
    dgp[return -level 0] is bytecoded, but not as a special case, I think
    tclguyis concat bytecoded?
    tclguybecause return is just a push ...
    dgpLikely that some more checking in TclCompileReturnCmd could turn it into INST_CONCAT
    dgpspecial cases of return is just a push
    dgpbut [return -level 0] wouldn't qualify
    dgp"just a push" == INST_DONE
    kbktclguy - ISTR that concat of a single arg is just a push.
    dgpthe INST_CONCAT optimization sounds good though.
       * rmax cd ~
    dgp"just a push" not quite accurate.
    dgpthe command argument would already be pushed
    dgpmore like "just convert TOS to the command result"
    dgpanyhow, some good ideas here I can't immediately implement, recoding in Tracker...
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "[return -level 0] improve bytecode"
  12. type changed to: "RFE"