Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d3eb0cc0bb72348c132452d9dd1c109316820000ad7d6fd3ae8f6d42f917efff
Ticket: da16d155744c55d5a769a81b57b0e80045e8391a
unacceptable long file read time by fix of [db4f2843cd]
User & Date: pointsman on 2024-01-07 23:57:34
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Paul Obermeier reported on tcl-core:
    
    Using the latest 9.0b1 release, I get inacceptable large read times, when reading a large file.
    This happens only on Windows and when using the default channel settings, i.e not using fconfigure.
    
    The attached script demonstrates the issue by creating a large file and reading the file using 3 different modes:
    1. Read the file in small chunks and build up the data string.
    2. Use plain "read $fp"
    3. Use "read $fp [file size]"
    
    Using Tcl 8.6 or 8.7 this works just fine, but with Tcl9 modes 2 and 3 take forever.
    If configuring the file channel with "-translation binary", read times are normal.
    
    === (end of Pauls report)
    
    I have confirmed on windows 10 with msys/mingw, gcc 8.1.
    
    Bisecing points to [f4c0d899fb4534f4]
    
  5. foundin changed to: "9.0b1"
  6. is_private changed to: "0"
  7. login: "pointsman"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "pointsman"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "read command broken on Windows using Tcl9"
  16. type changed to: "Bug"