Skip to content

Add mmap option instead of loading the index #61

Description

@jermp

We could add a mmap option instead of loading the index for querying. That is, the user can specify:

  1. --load (default choice): this loads the entire index in memory, assuming there is enough RAM for it. This is the intended usage if there is enough RAM and the queries are many.
  2. --mmap: this memory maps the index file on disk, so that queries will fetch disk pages automatically. This is the intended usage when option --load is not used, i.e., when there isn't enough RAM or queries are sporadic.

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions