Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlap: use overlapcache #3639

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 30, 2024

  1. overlap: add overlapcache subpackage

    This commit implements a new overlap cache data structure which will
    be embedded into `FileMetadata`.
    
    The cache works by remembering a handful of data regions and whether
    the spaces in-between are known to be empty. The goal is to make
    repeated overlap checks in the same area of a file much cheaper. This
    will make it feasible to have an optimistic overlap check that can be
    repeated on a slightly changed version without redoing most of the
    work.
    RaduBerinde committed May 30, 2024
    Configuration menu
    Copy the full SHA
    8e2dc01 View commit details
    Browse the repository at this point in the history
  2. overlap: use overlapcache

    We embed an overlap cache in `FileMetadata` and use it with the
    overlap checker.
    
    When we have to open a table, we now try to find a maximal empty
    region and the two surrounding data regions so that we can populate
    the cache with this information.
    
    The cache will be very useful for optimistic overlap checks which
    happen without blocking compactions, and might need to be retried.
    RaduBerinde committed May 30, 2024
    Configuration menu
    Copy the full SHA
    b0b33cb View commit details
    Browse the repository at this point in the history