top | item 28722773

(no title)

haydnv | 4 years ago

It might be possible to replace freqfs with mmap on a POSIX OS, but a) you would still have to implement your own read-write lock, and b) you would (I think probably?) lose some consistency in behavior across different host operating systems.

discuss

order

vlovich123|4 years ago

Which OSes does this run on that doesn’t have some kind of mmap operation?

haydnv|4 years ago

It should work on Windows (because tokio::fs works on Windows) although I have not personally tested this

gpderetta|4 years ago

mmaps for read, explicit API for writing, a-la LMDB. Buggy readers can read inconsistent data but cannot corrupt the os.

otterley|4 years ago

Corrupt the OS? How might that happen?