[Mono-bugs] [Bug 371722] Mono array initialization 10x slower than .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 17 12:42:38 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=371722

User msafar at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=371722#c5





--- Comment #5 from Marek Safar <msafar at novell.com>  2008-03-17 10:42:38 MST ---
I am posting this as I wrote it BEFORE your comment

Alright, I tried to remove all allocations and .NET still beats mono ~7 times.

I replaced BaseToString with

                public char[] BaseToString (bool h, bool p, bool b)
                {
                        ToHex((_d >> 4) & 0xf);
                        ToHex(_d & 0xf);
                        ToHex((_e >> 4) & 0xf);
                        ToHex(_e & 0xf);
                        ToHex((_f >> 4) & 0xf);
                        ToHex(_f & 0xf);
                        ToHex((_g >> 4) & 0xf);
                        ToHex(_g & 0xf);
                        ToHex((_h >> 4) & 0xf);
                        ToHex(_h & 0xf);
                        ToHex((_i >> 4) & 0xf);
                        ToHex(_i & 0xf);
                        ToHex((_j >> 4) & 0xf);
                        ToHex(_j & 0xf);
                        ToHex((_k >> 4) & 0xf);
                        ToHex(_k & 0xf);

                        return null;
                }

And the results are:
Mono: 1.82
NET: 0.25


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list