http://bugzilla.novell.com/show_bug.cgi?id=539161


           Summary: Generic performance issues.
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: generics
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


There are 2 issues with generics that causes the current implementation to
generate sub-optimal code.

First, .constrained callvirt on reference types we do an indirect load for no
good reason at all. We should make remove this indirection and remove
MONO_INST_INDIRECT from the var if possible.

Second, we need to intrinsify System.Activator::CreateInstance<!0> as this is
used for creating instances of generic params with the new () constraint.  The
overhead of having this function as is is pretty big, specially for valuetypes
for which the empty ctor is just a bzero.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to