[Mono-dev] Mono Speed and Intermediate Language

Paolo Molaro lupus at ximian.com
Tue Apr 4 06:14:32 EDT 2006


On 04/03/06 Rusmin Susanto wrote:
>   1. Is Mono slower than MS .NET? I have a C# program that runs around 9 second in   
>      Mono. I tried to compile it with /optimize flag.  But I couldn't see any speed  
>      increase. The same program run around 6 second in .NET (debug mode) and 
>      around 4.8 second (release mode)
>      Is this the expected outcome? Or I made some mistake? What should I do to 
>      improve performance?

Sometimes mono is slower, sometimes it is faster. If you have a test
where mono is significantly slower than the MS runtime, please file it
in a bug report in bugzilla so we can see what's up.

>   2. Is it possible to put inline assembly (Mono assembly which is the intermediate 
>       languange) in C#?   If yes, how do we do it?

You could certainly develop an extension to C# and modify our compiler
to recognize it and output the inline IL assembly code.

>   3. Let's say I go a useful package that was written in Microsoft C#. I don't have the 
>      source code, only the assembly (IL).    Can I use it in Mono? If yes, how do I do it?

Sure, provided it doesn't use Platform/invoke to win32 binary libraries
and references assemblies that are implemented in mono.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list