
17 Dec
2008
17 Dec
'08
1:19 p.m.
Hello Simon, Wednesday, December 17, 2008, 4:05:48 PM, you wrote:
I'm afraid the underlying problem is one that GHC has always had - that we can't preempt threads that aren't allocating. It's not easily fixable, we would have to inject dummy heap checks into every non-allocating loop, which would seriously hurt performance for those tight loops.
just technical note - if we unroll such loops and insert one check per 10 repetitions, it may be ok. although conditional execution may be a problem for such solution -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com