Performance of small allocations via prim ops

Harendra Kumar harendra.kumar at gmail.com
Fri Apr 7 10:15:41 UTC 2023


On Fri, 7 Apr 2023 at 12:57, Simon Peyton Jones <simon.peytonjones at gmail.com>
wrote:

> > We are emitting a more efficient code when the size of the array is
> smaller. And the threshold is governed by a compiler flag:
>
> It would be good if this was documented.  Perhaps in the Haddock for
> `newByteArray#`?  Or where?
>

The flag is documented in the GHC user guide but the behavior would be
better discoverable if `newByteArray#` mentions it.

-harendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20230407/b3e3bb70/attachment.html>


More information about the ghc-devs mailing list