
6 Nov
2005
6 Nov
'05
5:59 a.m.
On Nov 5, 2005, at 3:13 PM, Tomasz Zielonka wrote:
I just checked that the memory allocated with Foreign.ForeignPtr.mallocForeignPtrBytes is included in the GC stats. Does the FastString library use its own implementation of mallocForeignPtr?
Yes, -- (internal) GC wrapper of mallocForeignPtrArray mallocForeignPtr :: Int -> IO (ForeignPtr Word8) mallocForeignPtr l = when (l > 1000000) performGC >> mallocForeignPtrArray l -- http://wagerlabs.com/