[Mono-list] Garbage collector problem ?
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Sun Aug 30 13:05:44 UTC 2015
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of gbenrais
> I have written a program with visual studio and it runs a lot slower with
> mono on my linux machine, though the linux machine has a good CPU. It
> 10 seconds on windows vs 80 seconds on linux.
> The program can be summarized as a loop on objects. I printed the elapsed
> time for each iteration and it is constant on windows whereas it grows on
> linux (0.05 seconds for the first object, up to 0.45 seconds for the last
> one (up to 90 times slower)). Therefore I suppose there is a garbage
> collecor problem ?
> Any clue ?
Some things run faster in mono, and some things run faster in .Net. In extreme cases, one platform will run 10x or 40x faster than the other.
Also, if you enable optimization, sometimes it results in 10x performance difference.
In general, it is best not to think about it too much. But if you have a situation where you need to think about it and dig into it, you're going to have to work your way down to a specific method call or something like that. The email you wrote above was nowhere near the level of detail necessary to figure it out.
More information about the Mono-list