Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 25e87384d1591cd562ef1d6d6a5348f8608c748c1b0dff957101fcdf7ffa9376
Ticket: 411f52ed87e313dd49e292a77f231b8f7d09e94d
file performance on windows is slow depending on path vs string rep
User & Date: juliannoble2 on 2023-08-22 19:28:32
Changes

  1. icomment:
    Verified with sysinternals process monitor that the file commands are walking up the file hierarchy and querying each directory for information.
    
    In the case of Tcl9 - it's doing so twice for a single 'file attr' call - which is a regression from 8.7
    
    I still believe this walking up the tree is related to gathering the 'shortname' info for windows paths.  This information is useful if you're deep in a hierarchy - but I think most file operations make no use of it. It should probably be an explicit operation to gather it for a full path if required - or it should be cached, or only gathered automatically when there is an error related to long paths or windows-illegal characters in filenames.
    
    This walking up the tree affects other operations such as package loading and attempting to shell out to an unknown command (which on my system has a lag of 4s everytime I finger-fumble - versus nearly instantaneous on Unix)
    
    These operations were also checked with process monitor and the extra filesystem activity is visible.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"