Re: [Haskell-cafe] mutable arrays of tuples

2012-08-09 Thread Jake McArthur
In fact, unboxed arrays of tuples are represented in vector as tuples of unboxed arrays. On Aug 9, 2012 4:35 AM, "Ketil Malde" wrote: > David Feuer writes: > > > So I was thinking about a mutable array of tuples, but to avoid > allocating > > tuples to modify their fields, I guess I really want

Re: [Haskell-cafe] mutable arrays of tuples

2012-08-09 Thread Ketil Malde
David Feuer writes: > So I was thinking about a mutable array of tuples, but to avoid allocating > tuples to modify their fields, I guess I really want an immutable array of > tuples of STRefs. Just how much less efficient is this than a plain mutable > array? might it even make sense to use para

[Haskell-cafe] mutable arrays of tuples

2012-08-08 Thread David Feuer
So I was thinking about a mutable array of tuples, but to avoid allocating tuples to modify their fields, I guess I really want an immutable array of tuples of STRefs. Just how much less efficient is this than a plain mutable array? might it even make sense to use parallel mutable arrays? The thoug