Profiling and Data.HashTable
simonmar at microsoft.com
Mon Oct 17 05:57:27 EDT 2005
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.
More information about the Glasgow-haskell-users