krestenkrab/emmap — pull request #6 by hirschenberger (2014-10-21 12:41:38+00:00)
Title: Add `auto_unlink` flag to delete the mapped file after data got gc'd

I'm using this functionality to speed up data transfer of big binary data via the file-based shared-memory area in `/run/shm/...` instead of sidio-based ports. I only transfer the path and the size of the binary in a tuple and mmap the file in `direct` mode.
With `auto_unlink` enabled, the file (and it's memory) is freed automatically when the binary gets gc'd.

With this transport I get a speedup of ~70% to stdio ports.