On 17 October 2005 08:07, Ketil Malde wrote:

> BTW, could one cheat by introducing a write barrier manually in some
> way?  Perhaps by (unsafe?) thaw'ing and freeze'ing the arrays when
> they are modified?

Might be worthwhile: freezing is very quick (basically a single write),
thawing is slightly slower (an out-of-line call, but a short one).  The
effect of freezing will only be felt after a couple of GCs, when
everything the array points to is pulled into the old generation and the
GC can take it off the mutable list.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to