8 Sep
2010
8 Sep
'10
7:13 p.m.
On Wed, Sep 8, 2010 at 12:05 PM, Duncan Coutts <duncan.coutts@googlemail.com
wrote:
On 8 September 2010 10:56, Johan Tibell <johan.tibell@gmail.com> wrote:
Btw, I see that the BA# constructor is not manually unpacked into the Array data type. Is that done automatically since ByteArray# is unlifted or is there some room for improvement here?
I'm not sure what you're referring to here, the definition is:
data UArray i e = UArray !i !i !Int ByteArray#
The ByteArray# is an unlifted type (but its representation is a pointer to a heap object).
The BA# constructor also includes a length field. My question is whether that gets unpacked into the Array constructor (as in Data.Text.Array, not UArray). -- Johan