Faster Array#/MutableArray# copies

Nathan Howell nathan.d.howell at
Tue Mar 1 18:29:23 CET 2011

On Mon, Feb 28, 2011 at 9:01 AM, Simon Marlow <marlowsd at> wrote:

> Ideally you'd want the heap check in the primop to be aggregated into the
> calling function's heap check, and the primop should allocate directly from
> the heap instead of calling out to the RTS allocate(). All this is a bit
> much to expect LLVM to do, but we could do it in the Glorious New Code
> Generator...

It's probably (certainly) better to do it in the code generator but it is
rather easy to perform in LLVM and might be a worthwhile optimization during
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Glasgow-haskell-users mailing list