streamly
streamly copied to clipboard
Use ByteArray# instead of MutableByteArray# in the immutable Array
Freeze it before finalizing the array.
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#
?