[Mono-bugs] [Bug 76400][Nor] New - DateTime.Parse allocates 17 kb / call

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Oct 10 17:56:00 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer at users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=76400

--- shadow/76400	2005-10-10 17:56:00.000000000 -0400
+++ shadow/76400.tmp.15782	2005-10-10 17:56:00.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 76400
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bmaurer at users.sf.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DateTime.Parse allocates 17 kb / call
+
+The following test case:
+
+using System;
+using System.IO;
+
+class X {
+	static void Main ()
+	{
+		for (int i = 0; i < 1000; i ++) {
+			DateTime x = DateTime.Parse ("2005/10/09");
+		}
+	}
+}
+
+Shows that DateTime.Parse allocates ~17 kb per call. It takes about 1.9
+seconds to execute it with a loop count of 10,000. This cost needs to be
+reduced.


More information about the mono-bugs mailing list