Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0aae36c19e9713104cca9655fd900645ff1708ad
Ticket: 456668ffffffffffffffffffffffffffffffffff
caching fully qualified cmd names
User & Date: msofer on 2001-08-30 07:41:11
Changes

  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"