[Mono-dev] Make it go faster

Rodrigo Kumpera kumpera at gmail.com
Wed Jan 26 06:41:24 EST 2011


Can you post a code sample where this 2.5x performance loss happens?
Mono is usually slower, but should not be by all of that.

On Wed, Jan 26, 2011 at 10:25 AM, McLachlan, Charles <
CMcLachlan at illumina.com> wrote:

> I have a heavily used path in my code that iterates over a big array and
> does a bit of maths.
>
> Mono 2.8 on 64bit linux seems to be about 2.5 times slower than .NET on
> 64bit Windows.
>
> The path is pure .NET, but other bits of the program use native
> libraries for other computationally intensive bits. This means the whole
> lot is compiled with -unsafe.
>
> I have tried compiling the code with both Visual Studio and dmcs. Both
> executables run in the same sort of times (i.e. the speed hit is coming
> from the different virtual machine, not the compiler producing "bad"
> byte-code).
>
> Is there any voodoo I can give mono (at runtime) to make it do
> maths/array traversal faster?
> (or any web page that describes how to make it go faster?)
>
> I have tried --aot, followed by --optimize=aot as well as various
> combinations of --optimise=loop,aot,all all with no appreciable change.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110126/1b2d8551/attachment.html 


More information about the Mono-devel-list mailing list