Skip to content
Tcl Source Code History Of Ticket 924097ffff
Login

History Of Ticket 924097ffff

Artifacts Associated With Ticket 924097ffff

  1. Ticket change [384acb8223] (rid 112182) by msofer on 2004-03-26 18:35:27:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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]
      
         
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "optimise {}-appends"
    11. type initialized to: "RFE"
  2. Ticket change [fa67a01475] (rid 91869) by dgp on 2004-03-27 02:06:48:

    1. 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).
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [024a93ea8b] (rid 119614) by dkf on 2004-03-29 17:40:18:

    1. 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...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [1101827ea2] (rid 95069) by msofer on 2004-09-10 19:49:15:

    1. closedate changed to: "2004-09-10T12:49:15"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Peephole optimisation to INST_CONCAT1 commited.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "msofer"