Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7f01712a230673d8435a4c2375a6664feba13b3d
Ticket: 871583ffffffffffffffffffffffffffffffffff
filesystem optimization, committed jan 2004
User & Date: dgp on 2004-01-16 03:48:29
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    TclFSGetPathType() especially
    looks like it could use some attention.
    
    It appears that TclGetPathType() is
    fairly expensive and TclFSGetPathType()
    is an attempt to avoid it.
    
    However, if pathObjPtr is not already a
    FSPathObj with cwdPtr NULL or up to date,
    then the Tcl_FSConvertToPathType()
    call will have to call TclGetPathType() to
    attempt to make it so.
    
    The last call to TclGetPathType is mysterious
    too.  Don't we know when cwdPtr == NULL
    that we have an absolute path?  Or is that
    another example of the comments being
    out of date?
    
    Anyhow, it appears that in the slow operations,
    TclGetPathType is getting called twice.  The
    first time from within the patched 
    Tcl_FSConvertToPathType() and the
    second time when the cwdPtr of
    the converted pathObjPtr turns out
    to be NULL.
    
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"