Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8361efac6cda5953b41e5f6b35f327379498aa81
Ticket: 871583ffffffffffffffffffffffffffffffffff
filesystem optimization, committed jan 2004
User & Date: dgp on 2004-01-21 05:58:22
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Aha!
    
    Apply this patch to your
    file.bench before
    contributing it to
    tclbench:
    
    --- /home/dgp/file.bench        Tue Jan 20 14:45:52 2004
    +++ file2.bench Tue Jan 20 17:45:56 2004
    @@ -175,7 +175,11 @@
    
     # Make a dummy pkgIndex to test speed of pkg require when the
     # auto_path is changed on the fly
    -contents [file join $dir pkgIndex.tcl] {lappend ::auto_path
    $dir}
    +contents [file join $dir pkgIndex.tcl] {
    +    if {[lsearch -exact $::auto_path $dir] == -1} {
    +       lappend ::auto_path $dir
    +    }
    +}
    
     contents $file {lappend ::auto_path [file dirname [info
    script]] ;\
       catch {package require bogus-name}; package names; exit}
    
    
    Tcl 8.3.5 had a bug in
    [tclPkgUnknown] that
    allowed for an infinite loop
    as the same directory got
    lappended again and again
    to ::auto_path.  This patch
    avoids triggering that bug.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"