streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Use ByteArray# instead of MutableByteArray# in the immutable Array

Open harendra-kumar opened this issue 6 months ago • 1 comments

Freeze it before finalizing the array.

harendra-kumar avatar Dec 23 '23 23:12 harendra-kumar

We use MutableByteArray# as we perform a lot of immutable ops using mutable array combinators. If we use ByteArray#, we'll have to thaw-and-freeze it at a lower level, which should be fine. Is there a reason we want to use ByteArray#?

adithyaov avatar Dec 25 '23 08:12 adithyaov