Skip to content

Conversation

@symphorien
Copy link

write the content of the buffer to a file:

  • in ram with memfd_create if applicable
  • on disk if the configuration allows it

Inspired of #18

I only tested this on linux with memfd_create (added in linux 3.17). I added some try: except so that it should work on old linux, but it's not tested.
This adds a new dependency (pymemfd) but only on linux; I don't know how to encode it for pip. This is left as future work.
If you are interested in merging this PR, I'll spend some more time polishing this sort of "details".

write the content of the buffer to a file:
* in ram with memfd_create if applicable
* on disk if the configuration allows it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant