[m-rev.] for review: reduce memory allocation on C#

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Oct 14 14:22:58 AEDT 2010


On Fri, 8 Oct 2010, Peter Wang wrote:

> Branches: main
>
> Reduce some memory allocations on the C# backend.
>
> compiler/mlds_to_cs.m:
>        Use `out' parameters to handle multiple outputs instead of returning an
>        array of objects.
>
>        Hoist method pointers to static class members, then use those instead
>        of creating new delegate instances at run time.
>
>        Delete some unused code.
>
> compiler/mlds.m:
>        Work around a problem with the `store_at_ref_type'.
>
> compiler/handle_options.m:
>        Update comment about the options which are used for C#.
>
> runtime/mercury_dotnet.cs.in:
>        Declare `MethodPtrN_rM' delegates, where N is the number of input
>        arguments and M is the number of output arguments.
>
> library/rtti_implementation.m:
>        Conform to changes.

That looks fine.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list