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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79000 --- shadow/79000 2006-08-09 05:51:00.000000000 -0400 +++ shadow/79000.tmp.1812 2006-08-11 09:04:33.000000000 -0400 @@ -10,13 +10,12 @@ Component: CORLIB AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: -Cc: Summary: Memleak & Performance issue with deserialization of mulit-dimensional arrays Description of Problem: Performance issue with deserialization of mulit-dimensional arrays. With each subsequent call of a deserialization of an object with a multidimensional array (int[size, size]) each deserialization gets slower @@ -67,6 +66,31 @@ deserialized... but I dunno. ------- Additional Comments From [EMAIL PROTECTED] 2006-08-09 05:50 ------- Created an attachment (id=17431) Graphs of: memory leaking and deserialization slowing down + +------- Additional Comments From [EMAIL PROTECTED] 2006-08-11 09:04 ------- +I reduced the test case to the following: + + public class DeserializeTest + { + public static void Main(string[] args) + { + Type t = typeof(int[,]); + for (int k = 0; k < 10; k++) { + long start = Environment.TickCount; + for (int i = 0; i < 1000; i++) { + bool b = t.IsValueType; + } + Console.WriteLine("Exec. Time: " + (Environment.TickCount - start) ++ "ms " + k); + } + } + } + +Looks like the problem is in the property Type.IsValueType when the +type is a multi-dimensional array. It is leaking memory and every call +is slower. + + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
