Author: gonzalo
Date: 2006-01-13 12:47:07 -0500 (Fri, 13 Jan 2006)
New Revision: 55524
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpWriter.cs
Log:
2006-01-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
Glenn for pointing this out.
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-01-13 17:21:15 UTC
(rev 55523)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-01-13 17:47:07 UTC
(rev 55524)
@@ -1,3 +1,8 @@
+2006-01-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
+ Glenn for pointing this out.
+
2006-01-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpApplicationFactory.cs: fix condition for ContextAvailable.
Modified: trunk/mcs/class/System.Web/System.Web/HttpWriter.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpWriter.cs 2006-01-13 17:21:15 UTC
(rev 55523)
+++ trunk/mcs/class/System.Web/System.Web/HttpWriter.cs 2006-01-13 17:47:07 UTC
(rev 55524)
@@ -80,9 +80,11 @@
output_stream.Flush ();
}
+ char [] chars = new char [1];
public override void Write (char ch)
{
- Write (new string (ch, 1));
+ chars [0] = ch;
+ Write (chars, 0, 1);
}
public override void Write (object obj)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches