Open crumblingstatue opened 2 years ago
This method will probably not be needed, because memory mapped files support copy on write, where the OS does all the difficult bookkeeping.
Will probably be called --unsafe-mmap
or something like that, due to the inherent unsafety of using memory mapped files
My current idea is to have an immutable mmap with "change buffers" that hold the changes, and can grow, etc, as changes are made. Then on save, we temporarily make the mmap mutable and write the change buffers.