Re: Re: FPS: Finalizers not running (was Memoryusageoutside of the Haskell heap)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Re: FPS: Finalizers not running (was Memoryusageoutside of the Haskell heap)

Ketil Malde
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.

Great!

> 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? )

-k
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe