I suggests a new module for mapping files into memory. Instead of viewing the file as array of bytes, it directly maps the object onto file allowing to handle it as regular in-memory object. The data remain persistent after the program exits and may be re-opened and used again or shared between processes.
Dynamic arrays are also supported with some limitations.
The code is at
https://github.com/sdegtiarev/phobos/tree/master/std/experimental/perpetual
Is anybody interested?

Reply via email to