Skip to content
Tcl Source Code History Of Ticket 219120ffffffffff
Login

History Of Ticket 219120ffffffffff

Artifacts Associated With Ticket 219120ffffffffff

  1. Ticket change [b3bbc2ee9b] (rid 124904) by nobody on 2000-10-26 01:11:04:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6216 Bug
      Version: 8.3.1
      SubmitDate: '2000-09-05'
      LastModified: '2000-10-20'
      Severity: SER
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows 95
      OSVersion: win95sr2
      FixedDate: '2000-10-20'
      FixedInVersion: 8.4a2
      ClosedDate: '2000-10-25'
      
      
      Name:
      Martin Mergel
      
      ReproducibleScript:
      On a directory with 4000 files, a simple glob * takes about 2:45 minutes with Tcl 8.3.1
      
      DesiredBehavior:
      With Tcl 8.0.2, the same command is executed within 6 seconds
      
      
      
      The file was stat'ed more than necessary.  This has been corrected
      
      for 8.4a2 with the following patch:
      
      
      
      Index: win/tclWinFile.c
      
      ===================================================================
      
      RCS file: /home/cvs/external/tcl/win/tclWinFile.c,v
      
      retrieving revision 1.7
      
      diff -r1.7 tclWinFile.c
      
      329,330c329,336
      
      <       attr = (*tclWinProcs->getFileAttributesProc)(nativeName);
      
      <       Tcl_DStringFree(&ds);
      
      ---
      
      > 
      
      >       /*
      
      >        * 'attr' represents the attributes of the file, but we only
      
      >        * want to retrieve this info if it is absolutely necessary
      
      >        * because it is an expensive call.
      
      >        */
      
      > 
      
      >       attr = NULL;
      
      335a342
      
      >                   attr = (*tclWinProcs->getFileAttributesProc)(nativeName);
      
      392,396c399,406
      
      <       } else if (attr & FILE_ATTRIBUTE_DIRECTORY) {
      
      <           Tcl_DStringAppend(dirPtr, "/", 1);
      
      <           result = TclDoGlob(interp, separators, dirPtr, tail, types);
      
      <           if (result != TCL_OK) {
      
      <               break;
      
      ---
      
      >       } else {
      
      >           attr = (*tclWinProcs->getFileAttributesProc)(nativeName);
      
      >           if (attr & FILE_ATTRIBUTE_DIRECTORY) {
      
      >               Tcl_DStringAppend(dirPtr, "/", 1);
      
      >               result = TclDoGlob(interp, separators, dirPtr, tail, types);
      
      >               if (result != TCL_OK) {
      
      >                   break;
      
      >               }
      
      398a409,414
      
      >       /*
      
      >        * Free ds here to ensure that nativeName is valid above.
      
      >        */
      
      > 
      
      >       Tcl_DStringFree(&ds);
      
      > 
      
       
      
      -- 10/20/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Performance of glob command"
    11. type initialized to: "Bug"
  2. Ticket change [b57cefe6b5] (rid 125251) by welch on 2000-10-26 08:34:57:

    1. closedate changed to: "2000-10-26T01:34:57"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [d25fb8c5c3] (rid 113526) by dgp on 2001-04-20 02:38:11:

    1. closedate changed to: "2001-04-19T19:38:11"
    2. closer changed to: "dgp"
    3. subsystem changed to: "37. File System"
  4. Ticket change [541e426de7] (rid 93885) by dgp on 2001-04-20 02:38:24:

    1. closedate changed to: "2001-04-19T19:38:24"
    2. closer changed to: "dgp"
    3. subsystem changed to: "36. Pathname Management"