The array representation has to be uniform to support generics. Hence [Nat8]
has the same memory layout as other arrays. If you want a compact bytes array (and don’t need random access or mutation), you can use type Blob
.
(We’ve been discussing specialised array representations, but this hasn’t been a priority yet, and they would induce some overhead into array accesses.)