A design question about FD usages #1154
zefengsysu
started this conversation in
General
Replies: 1 comment 6 replies
-
There's a report that on iOS closing FD will make mmap fail to work inter-process. Yet I don't have the time to verify that. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MMKV use two FD for each MMKV instance now, one for the MMKV file, and another for the meta file, and MMKV's file lock implementation reuse the meta file's FD.
Since close FD after mmap return is ok, can we close the MMKV file's FD after new MemoryFile instance ready, for reduce the overhead of FD?
Beta Was this translation helpful? Give feedback.
All reactions