[Haskell-cafe] Re: Using tiny (atomic) mutables between multiple threads

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Sep 16 11:30:25 EDT 2009

Hello Simon,

Wednesday, September 16, 2009, 7:05:04 PM, you wrote:
>> 1. Might readMVar really be computationally expensive under heavy load,
>> (with all it's wonderful blocking features)? How much (approximately) more
>> expensive, comparing to a assembler's "mov"?

> Probably 10-100 times more expensive than a mov, depending on the cache
> state.

many years ago, with ghc 6.6 and duron-1000, i had million or two of
withMVar per second. anyway, this sort of things is easier to test

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list