[Git][ghc/ghc][master] Mention new `Foreign.Marshal.Pool` implementation in User's Guide

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Feb 14 16:27:31 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
c399ccd9 by amesgen at 2023-02-14T11:27:14-05:00
Mention new `Foreign.Marshal.Pool` implementation in User's Guide

- - - - -


1 changed file:

- docs/users_guide/exts/ffi.rst


Changes:

=====================================
docs/users_guide/exts/ffi.rst
=====================================
@@ -807,11 +807,9 @@ the different kinds of allocation perform with GHC.
     the other forms of allocation above.
 
 ``Foreign.Marshal.Pool``
-    Pools are currently implemented using ``malloc/free``, so while they
-    might be a more convenient way to structure your memory allocation
-    than using one of the other forms of allocation, they won't be any
-    more efficient. We do plan to provide an improved-performance
-    implementation of Pools in the future, however.
+    Pools can be a more convenient way to structure your memory
+    allocation than using one of the other forms of allocation. They are
+    backed by the RTS internal arena instead of ``malloc/free``.
 
 .. _ffi-threads:
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c399ccd97892fd536abf64b03f467e8fe4cc50e5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c399ccd97892fd536abf64b03f467e8fe4cc50e5
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230214/3eae5b2a/attachment-0001.html>


More information about the ghc-commits mailing list