Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add mmap option instead of loading the index #61

@jermp

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.

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