Skip to content

A design question about FD usages #1153

Closed

Description

@zefengsysu

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?

Activity

  1. locked and limited conversation to collaborators on Aug 18, 2023
  2. converted this issue into a discussion #1154 on Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions