[Mono-list] Performance benchmark

James Mansion james at mansionfamily.plus.com
Sat Feb 27 18:43:02 EST 2010

Rodrigo Kumpera wrote:
> The differences are in areas such as synchronization and thread-local 
> access.
> We can generate more efficient thread-local access code on linux than 
> on windows,
> for example.
Well, aside from whether it is necessary for the majority of allocations 
to use
synchronisation in a modern VM (which I doubt) I think there is little 
why TLS should be materially slower - it doesn't have to use the raw OS 
and can use something closer to what the compilers do with compiler TLS, 
> Memory allocation and call into native/runtime functions both require 
> fast thread local access.
> So a lot of under the hood code that the runtime needs to generate is 
> faster under linux.

Sure, but the code we were shown shouldn't be doing native calls, and 
Mono has thread
local allocator support - and that certainly doesn't have problems for 
the JVM on
Windows.  Smells wrong to me.

More information about the Mono-list mailing list