<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 Apr 2023 at 12:57, Simon Peyton Jones <<a href="mailto:simon.peytonjones@gmail.com">simon.peytonjones@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif">> We are emitting a more efficient code when the size of the array is smaller. And the threshold is governed by a compiler flag:</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">It would be good if this was documented.  Perhaps in the Haddock for `newByteArray#`?  Or where?</div></div></blockquote><div><br></div><div>The flag is documented in the GHC user guide but the behavior would be better discoverable if `newByteArray#` mentions it.</div><div><br></div><div>-harendra<br></div></div></div>