[Mono-bugs] [Bug 74014][Nor] Changed - Method BitConverter.ToString() runs very very slow (possible string concatention bug)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Mar 2005 14:02:00 -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 dezelin@gmail.com.


--- shadow/74014	2005-03-23 12:04:37.000000000 -0500
+++ shadow/74014.tmp.30066	2005-03-23 14:02:00.000000000 -0500
@@ -91,6 +91,25 @@
 stringbuilder is in corlib and it will use less memory.
 The char array requires about twice as much memory as the
 stringbuilder way.
 As for the possible slowness: let's get some numbers first
 and if it is significant we'll look at optimizing sb.Append().
+------- Additional Comments From dezelin@gmail.com  2005-03-23 14:02 -------
+Here's the patch wich uses StringBuilder.
+time mono --debug test-bitconverter-tostring.exe
+real    0m0.083s
+user    0m0.051s
+sys     0m0.016s
+It's somewhat slower but I guess that it doesn't make a difference
+regarding that probably 99.99% of the converted data is smaller than
+100 Kb in size?
+Aleksandar Dezelin