[Issue 7033] File.rawWrite is slow on Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 27 15:16:10 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=7033

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Just was doing some development and found this same bug. This is absolutely
unnecessary, especially if the file is already open in binary mode. We
currently don't store what mode the file is in, but we absolutely could (we are
allocating a heap struct for this, no reason we can't store that). And only
switch if necessary.

This should be an easy change and I'm kind of surprised this has been open for
so long.

--


More information about the Digitalmars-d-bugs mailing list