[Mono-bugs] [Bug 594286] IList<int> is very slow compare to .net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 7 11:58:00 EDT 2010



Paolo Molaro <lupus at novell.com> changed:

           What    |Removed                     |Added
           Severity|Normal                      |Minor

--- Comment #2 from Paolo Molaro <lupus at novell.com> 2010-04-07 15:57:59 UTC ---
Actually none of the issues raised above are the main culprits here.
The biggest one was that a non-optimized generics icall was used to access the
array elements. This is fixed in svn, providing a 5x speedup.
Another issue is that we insert a wrapper method, which, as far as I can tell,
has the only purpose of making the vtable layout code happy: we should instead
just setup the right vtable slots for array interfaces programmatically (this
has the added benefit of reducing memory requirements).
Once that is fixed as well, the imt issue may start to be relevant and there
are a couple more bits, but they have all diminishing returns.
For imt slots, in the case of the arrays we should likely use the imt fallback
mechanism to build the imt list at runtime as we go, other solutions would be
probably expensive.

Configure bugmail: http://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