Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6ac42712fe4ac66c9913493e5fe15ed2a4b48883
Ticket: 219148ffffffffffffffffffffffffffffffffff
IO_PERFORMANCE on NT 80 times slower then on unix
User & Date: andreas_kupries on 2001-08-24 07:27:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Ideas to solve this problem collected so far.
    ________________________________________
    Just remove the forced OS flush for
    Windows. Make the tests 'unixOnly'.
    
    Anticipated Effects:
    
    -Speedup for Windows I/O compared to
    current solution.
    
    -No change for the other platforms.
    
    -The coverage of code paths by the
    testsuite decreases. In other words,
    the testsuite becomes worse.
    ________________________________________
    Add counters in the channel structures
    (on the driver side) to count how many
    bytes were read and written to the OS.
    
    Add testchannel subcommands to access this
    information instead of using [file size].
    
    The tests will have to be rewritten.
    
    Anticipated Effects:
    
    -General slowdown in the I/O system
    for all platforms (Counter management).
    Should be negligible though.
    
    -Speedup for Windows I/O compared to
    current solution.
    
    -The testsuite stays in shape.
    ________________________________________
    Handle the proposed counters only for Win*.
    Write separate tests for Unix and Win*
    
    Anticipated Effects:
    
    -Speedup for Windows.
    
    -No change for the other platforms.
    
    -The testsuite stays in shape.
    ________________________________________
    Add a boolean flag to the Win* structures
    (driver side). Indicates if a true flush
    was done on the file channel.
    
    Whenever a [file size] is requested the
    system goes through the list of file
    channels and does an OS flush on all with
    the flag not set. The flag is set by this
    action. Any write on the channel resets
    the flag for that channel. When closing a
    file channel do a true flush in the driver.
    
    The testsuite needs no change.
    
    Anticipated Effects:
    
    -Slowdown of [file size] operation
    for Win*.
    
    -Speedup of Win* I/O in general.
    
    -No change for the other platforms.
    
    -Essentially emulates Unix behaviour
    on Windows for Tcl.
    
    -Adds interaction between the
    filesystem and the I/O (channel)
    code.
    
    -The testsuite stays in shape.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"