Author: alp
Date: 2007-04-21 04:18:30 -0400 (Sat, 21 Apr 2007)
New Revision: 76038

Modified:
   trunk/mcs/class/corlib/System.IO/ChangeLog
   trunk/mcs/class/corlib/System.IO/FileStream.cs
Log:
2007-04-21  Alp Toker  <[EMAIL PROTECTED]>

        * FileStream.cs: Respect request for buffering in all cases.

        Gonzalo added code in r42667 that disables buffering even when it is
        requested, in the case that ftype != MonoFileType.Disk. This was
        killing performance for users who do Console.OpenStandardOutput(1024)
        but were ending up with a non-buffered FileStream.

        The new behaviour appears correct but we should watch for any
        regressions.



Modified: trunk/mcs/class/corlib/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.IO/ChangeLog  2007-04-21 05:35:16 UTC (rev 
76037)
+++ trunk/mcs/class/corlib/System.IO/ChangeLog  2007-04-21 08:18:30 UTC (rev 
76038)
@@ -1,3 +1,15 @@
+2007-04-21  Alp Toker  <[EMAIL PROTECTED]>
+
+       * FileStream.cs: Respect request for buffering in all cases.
+
+       Gonzalo added code in r42667 that disables buffering even when it is
+       requested, in the case that ftype != MonoFileType.Disk. This was
+       killing performance for users who do Console.OpenStandardOutput(1024)
+       but were ending up with a non-buffered FileStream.
+
+       The new behaviour appears correct but we should watch for any
+       regressions.
+
 2007-04-03  Alp Toker  <[EMAIL PROTECTED]>
 
        * UnmanagedMemoryStream.cs: Should not have a public Dispose().

Modified: trunk/mcs/class/corlib/System.IO/FileStream.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO/FileStream.cs      2007-04-21 05:35:16 UTC 
(rev 76037)
+++ trunk/mcs/class/corlib/System.IO/FileStream.cs      2007-04-21 08:18:30 UTC 
(rev 76038)
@@ -82,8 +82,6 @@
                                this.canseek = true;
                        } else {
                                this.canseek = false;
-                               noBuffering = true;
-                               bufferSize = 0;
                        }
 
                        this.handle = handle;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to