[Mono-bugs] [Bug 73570][Wis] New - Serialization/Deserialization of double[] array can be enhanced

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 10 Mar 2005 16:23:23 -0500 (EST)


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 vguzev@yandex.ru.

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

--- shadow/73570	2005-03-10 16:23:23.000000000 -0500
+++ shadow/73570.tmp.16140	2005-03-10 16:23:23.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 73570
+Product: Mono: Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vguzev@yandex.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Serialization/Deserialization of double[] array can be enhanced
+
+Description of Problem:
+Serialization/Deserialization of double[] array can be improved.
+
+Steps to reproduce the problem:
+1. mcs DoubleMassiveSerialization.cs
+2. mono DoubleMassiveSerialization.exe 1
+3. mono DoubleMassiveSerialization.exe 2
+
+Actual Results:
+--8<---------------------------------------
+[vadim@skif doublemassiveserialization]$ mono 
+DoubleMassiveSerialization.exe 1
+Allocated bytes = 80130048
+Serialization time  is 5.074844
+Deserialization time is 2.793764
+i = 00
+i = 199.9
+i = 2199.8
+i = 3299.7
+i = 4399.6
+[vadim@skif doublemassiveserialization]$ mono 
+DoubleMassiveSerialization.exe 2
+byte array length = 80000000
+Copying time is 0.263389
+ConvertToDouble time is 0.745255
+i = 00
+i = 199.9
+i = 2199.8
+i = 3299.7
+i = 4399.6
+--8<---------------------------------------
+
+Expected Results:
+As you can see, creating a copy of double[] array is 10 times faster than 
+using BinarySerializer. I think that it can be improved...
+
+How often does this happen? 
+Always
+
+Additional Information:
+[vadim@skif doublemassiveserialization]$ uname -a
+Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 
+GNU/Linux
+[vadim@skif doublemassiveserialization]$ mono --version
+Mono JIT compiler version 1.1.4, (C) 2002-2004 Novell, Inc and 
+Contributors. www.go-mono.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: normal
+
+By the way, why it's displayed go-mono.com, but not mono-project.com when 
+you use --version switch ;)
+
+
+Best regards,
+Vadim B. Guzev
+http://u.pereslavl.ru/~vadim/MCSharp/