[Haskell-cafe] Re: FPS: Finalizers not running (was Memoryusageoutside of the Haskell heap)

Ketil Malde ketil at ii.uib.no
Sat Nov 12 17:01:38 EST 2005

Jan-Willem Maessen wrote:

> I think that if I can get unsafeFreeze/unsafeThaw to work reliably,  
> it'll finally outperform Data.Map on your example.  I haven't yet  
> played with the hash function, which looks kind of bad; there may be  
> hope for improvement there as well.


> User-level Thaw is a bad idea, and I will resist it, even if the  
> library ends up using Freeze/Thaw internally to work around GC  
> shortcomings.

Why is it a bad idea?  (I agree completely about unsafeThaw, which seems 
dangerous, but surely there could be a way to construct a mutable copy 
of an immutable HashTable? )


More information about the Haskell-Cafe mailing list