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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Mar 2005 13:15:58 -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-11 08:35:42.000000000 -0500
+++ shadow/73570.tmp.21852	2005-03-12 13:15:58.000000000 -0500
@@ -85,6 +85,47 @@
 
 ------- Additional Comments From lluis@ximian.com  2005-03-11 08:35 -------
 It is not fair to compare the performance of those two methods, since
 a serialization process is much more complex than just copying some
 doubles into a byte array. In any case, it is worth to review the
 serializer and see if we can use the Buffer bulk copy methods.
+
+------- Additional Comments From vguzev@yandex.ru  2005-03-12 13:15 -------
+> It is not fair to compare the performance of those two methods, 
+since a serialization process is much more complex than just copying 
+some doubles into a byte array.
+
+Not fair? What will you say for this? ;)
+
+--8<-----------------------------------------------
+[vadim@skif doublemassiveserialization]$ mono 
+DoubleMassiveSerialization2.exe 2
+Serialization time is: 1.697393
+Deserialization time: 1.196584
+i = 00
+i = 199.9
+i = 2199.8
+i = 3299.7
+i = 4399.6
+[vadim@skif doublemassiveserialization]$ mono 
+DoubleMassiveSerialization2.exe 1
+Allocated bytes = 80130048
+Serialization time is 5.156474
+Deserialization time is 2.699004
+i = 00
+i = 199.9
+i = 2199.8
+i = 3299.7
+i = 4399.6
+--8<-----------------------------------------------
+
+We really need high speed serialization/deserialization mechanisms 
+of base types for our programs (HPC)... Otherwise we'll have to 
+write our own serializers... But I don't want to do it, cause I 
+think that we shouldn't reinvent "bycicle" ;)
+
+
+Best regards,
+Vadim B. Guzev
+http://u.pereslavl.ru/~vadim/MCSharp/
+
+