[Haskell-cafe] GHC threaded runtimes and pure functions
Bulat Ziganshin
bulat.ziganshin at gmail.com
Wed Sep 16 16:02:11 EDT 2009
Hello Andrew,
Wednesday, September 16, 2009, 11:31:22 PM, you wrote:
>> That makes sense. So maybe I should split my mapping into two
>> parallel ones or however many CPUs there are using par.
>>
> If you're going to use par, it doesn't really matter how many sparks you
> create. You just need to avoid creating millions of really tiny sparks.
> You could create, say, eight and let GHC figure out the rest itself...
since these are green threads, 1 millisecond sparks should be
acceptable and may be even 1 microsecod too. afair, overhead expenses
was significantly reduced in ghc 6.12, soon to be released
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list