Skip to content

Fix withForeignPtr (#17746)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20-withForeignPtr into master

First try: marking withForeignPtr NOINLINE

  • fix the bug
  • kills performance (up to 2600% in some tests IIRC)

Second (current) try:

  • use a with# helper that doesn't retain the full ForeignPtr but only ForeignPtrContents
  • seems better but still regresses a lot
Edited by Sylvain Henry

Merge request reports