Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b2629429a4481f737274797f96c35ebe163a57d0
Ticket: 1080039fffffffffffffffffffffffffffffffff
safe.test performance
User & Date: dgp on 2004-12-06 15:56:27
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    I find that when running Tcl's
    test suite, the safe.test file
    always takes several minutes
    to complete.
    
    Looking into the details of this,
    I find that the SafeBase [source]
    alias is being force to deal with
    hundreds of files, and this all derives
    from an ::auto_path list with hundreds
    of elements.
    
    Basically every subdirectory of
    /usr/local/lib ends up on the ::auto_path,
    and on my system, that's a lot of files.
    
    None of them appear to be important
    to what's being tested in safe.test, so
    the attached patch saves ::auto_path,
    sets it to a bare minimum value, and
    restores when safe.test tests are done.
    Result is much faster.
    
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "33. Safe Base"
  10. title changed to: "safe.test performance"
  11. type changed to: "Bug"