[Mono-devel-list] Integer and Floating point formatters
Atsushi Eno
atsushi at ximian.com
Sun Jan 30 12:25:07 EST 2005
Okay, I tried this simple test.
using System;
public class Test {
public static void Main () {
DateTime dt = DateTime.Now;
for (int i = 0; i < 500000; i++)
if (i.ToString () == null)
Console.WriteLine ("heh.");
Console.WriteLine (DateTime.Now.Ticks - dt.Ticks);
}
}
[old one]
$ mono ./perf.exe
6810000
[new one]
$ mono ./perf.exe
16530000
mono --profile results are:
http://monkey.workarea.jp/tmp/20050130/perf-original-simple.txt
http://monkey.workarea.jp/tmp/20050130/perf-kazuki-simple.txt
So the result was still worse. It went nearly 2.5x slower and
nearly 4x memory consumptive. I personally don't like this loss.
It won't be late after some optimization effort is done.
Atsushi Eno
Ben Maurer wrote:
> On Sat, 2005-01-29 at 09:29 +0900, Kazuki Oikawa wrote:
>
>>Hi.
>>
>>I made formatter class that integrated functions of IntegerFormatter and
>>FloatingPointFormatter.
>>
>>If you build Mono with this class.
>>please invalidate IntegerFormatter and FloatingPointFormatter.
>>This class include IntegerFormatter and FloatingPointFormatter wrapper.
>
>
> Do you have any benchmarks from the new version? I am especially
> interested in common path integer formatting (very especially
> int.ToString ()).
>
> -- Ben
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list