[Haskell-cafe] Questions about slow GC with STArray

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Apr 6 04:10:43 EDT 2009


Hello FFT,

Monday, April 6, 2009, 11:07:33 AM, you wrote:

> this problem addressed there? Why is this supposed to be specific to
> boxed arrays only: wouldn't GC have to scan the whole mutable array
> whether it's boxed or unboxed?

you need to scan only boxes: if array just contains plain cpu-level
numbers, there is nothing to scan

one way to solve this problem is to make one `modified` bit per each 256
elements rather than entire array so GC will have to scan only
modified chunks

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list