[Mono-list] Do good practices and performance tips in .NET apply to Mono too?
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Sun Mar 30 03:46:32 UTC 2014
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Casto
> As Mono is different from .NET, I guess the compiler optimizes the code
> differently and produces different bytecode. The GC is also probably
> That's why I'm wondering if all good practices and performance tips (even
> micro optimizations) given for .NET developers are 100% good for Mono
> developers too?
You're correct to think that some optimization techniques in .NET are applicable in mono, while others are not.
The performance characteristics between .NET and mono vary wildly. If you benchmark the performance of mono vs .NET, you'll find that some things are faster in .NET, and other things are faster in mono. All they have in common is their API, and that means the implementation is different, and hence, performance characteristics are also wildly different.
Reading about optimization in .NET is useful, regardless of anything else. But as you read your books, just keep it in the back of your mind.
More information about the Mono-list