[Mono-dev] Make it go faster

Zoltan Varga vargaz at gmail.com
Wed Jan 26 05:58:20 EST 2011


Hi,

  You might want to try the llvm backend in mono 2.8 and later:

http://www.mono-project.com/Mono_LLVM

<http://www.mono-project.com/Mono_LLVM>That will compile most IL code using
the LLVM optimizing compiler instead of the mono JIT. The next mono release,
2.10 will have llvm enabled official packages.

                     Zoltan

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/e78a9e93/attachment-0001.html 


More information about the Mono-devel-list mailing list