Skip to content
Tcl Source Code History Of Ticket 456668ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 456668ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 456668ffffffffffffffffffffffffffffffffff

  1. Ticket change [093349cb7e] (rid 89678) by msofer on 2001-08-29 21:48:03:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The enclosed patch allows cached fully qualified
      command names to be usable from different namespaces
      within the same interpreter. 
      
      This costs next to nothing for normal scripts, and may
      be valuable for OO apps that pass around command names
      in variables ("this").
      
      
      
    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: "caching fully qualified cmd names"
    11. type initialized to: "Patch"
  2. Ticket change [5edbbbe497] (rid 115705) by msofer on 2001-08-30 04:48:04:

    1. icomment:
      
      
      File Added - 10148: cmdName.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [22571ac3eb] (rid 130732) by hobbs on 2001-08-30 06:50:04:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      can you elaborate a bit more on a use case?
      Perhaps something that could be added to tclbench.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [0aae36c19e] (rid 113866) by msofer on 2001-08-30 07:41:11:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      The speedup can be noticeable; witness 
      
      [mig@mini unix]$ cat /tmp/testfile 
      proc a {} {return 1}
      
      namespace eval n1 {
          proc b {scr} {$scr}
      }
      
      proc c {scr} {
          n1::b $scr
          $scr
      }
      
      proc d {} {
          append res [time {c a} 10000]\n
          append res [time {c ::a} 10000]
      }
      
      puts [info patch]
      puts [d]
      
      
      [mig@mini unix]$ ./tclsh /tmp/testfile 
      8.4a4
      12 microseconds per iteration
      8 microseconds per iteration
      [mig@mini unix]$ /CVS/tcl_SF_clean/unix/tclsh /tmp/testfile 
      8.4a4
      13 microseconds per iteration
      12 microseconds per iteration
      [mig@mini unix]$ tclsh /tmp/testfile 
      8.3.3
      15 microseconds per iteration
      15 microseconds per iteration
      
      Jeff: does this patch look OK to you?
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [6f8c2532f6] (rid 100333) by hobbs on 2001-08-30 08:08:10:

    1. assignee changed to: "msofer"
  6. Ticket change [670608b157] (rid 102828) by hobbs on 2001-08-30 08:08:11:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      The patch passes all tests, and there is a notable 
      improvement, so I say go ahead and commit it.  Please 
      change it first to not use the { } frame instantiation 
      trick in C to create new vars.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  7. Add attachment "cmdName.patch" [2b3e4c0c50] (rid 118709) by msofer on 2001-08-30 19:11:02.

  8. Ticket change [6cc8fcb552] (rid 128577) by msofer on 2001-08-30 19:11:02:

    1. icomment:
      
      
      File Deleted - 10148: 
      
      
      
      File Added - 10175: cmdName.patch
      
      Logged In: YES 
      user_id=148712
      
      Patch adapted and committed.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [34f4525408] (rid 106829) by msofer on 2001-08-30 19:11:34:

    1. closedate changed to: "2001-08-30T12:11:34"
    2. closer changed to: "msofer"
    3. resolution changed to: "Accepted"
    4. status changed to: "Closed"
  10. Ticket change [423f9cbafd] (rid 116337) by msofer on 2001-09-06 03:18:36:

    1. closedate changed to: "2001-09-05T20:18:36"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      See also the companion patch #458872 that does the same
      caching for namespace names.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"