Overview
| Artifact ID: | 667c2544309ef426d7494aa2e870475dd284304e |
|---|---|
| Ticket: | 219148ffffffffffffffffffffffffffffffffff
IO_PERFORMANCE on NT 80 times slower then on unix |
| User & Date: | andreas_kupries on 2001-09-05 07:20:47 |
Changes
- icomment:
Logged In: YES user_id=75003 Ideas from David Graveraux: The only thing I know is that if there's uncommitted buffers the OS holding, a request for file size won't cause the OS to commit the buffers first. A look at using I/O completion ports for writing to disk from within Tcl >might< be a good work-around for tracking what the OS hasn't committed yet. I can't say for sure. The amount of code for tracking could get very large. Adding an explicit flush to the channel driver might be the best alternative, but explicit at the script level to the user instead of the implicit one as is now. That's all I know. >Hm. We have a flushproc in the driver, it is just not used yet. This >could contain the OS-Flush on windows and be called by [flush] after >it has committed the tcl buffers to the OS. This does not help with the >test which check file sizes to check the correctness the 'implicit' >flushes. And the moment we add the OS-flush to them we are back to the >current situation. half way there... add a [flush] to the tests, that will do FlushFileBuffers() or whatever was the API func... It's not the same. Make [flush] not only flush the channel but commit the OS buffers, too. Normal mode flushing of the channel buffer doesn't have to also mean flushing the OS buffers, too.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"