[Mono-list] Evolutionary Algorithms with Mono slower than with .Net ?

Miguel de Icaza miguel at novell.com
Fri Mar 16 13:19:01 EDT 2007


Hello,

> I realize, that the primary goal of Mono isn't performance, but
> compatibility, but I wouldn't have thought, that such an algorithm, that
> consists of the stupid iteration of the same loop, calling the same
> methods over and over again, could leave so much room for optimization.

There are many things that will affect performance.

For example, the Console output in 2.0 is significantly slower than in
1.0 because we have to track every write sent to the screen so we can
refresh it (in 2.0 the Console exposed sadly the full-screen interface.
Instead of adding a new class for full screen operations they dumped
that junk into the main class).

A quick workaround is to not send data to the Console, but to a file, or
redirect the Console output (which will shutdown the 2.0 features).

So it is very hard to tell what is affecting your performance without
having a look at your source code.

You could also try profiling the code, something like:

	mono --profile myapp.exe

Miguel.



More information about the Mono-list mailing list