×

Selecting files for compaction

  • US 9,639,548 B2
  • Filed: 10/28/2014
  • Issued: 05/02/2017
  • Est. Priority Date: 10/28/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method comprising:

  • identifying two or more files, each file being a persistent electronic file stored as a separate file in a persistent file storage, each file including multiple entries;

    determining a respective size of each of the two or more files, each size being an estimate of how many distinct entries exist in the respective file that are not garbage entries;

    determining a combined size of the two or more files, where the combined size of the two or more files is an arithmetic sum of the respective sizes of the two or more files;

    estimating a compacted size of the two or more files, where the estimated compacted size of the two or more files is an estimate of how many distinct entries exist in the two or more files that are not garbage entries when the two or more files are taken together;

    determining that a result of comparing the combined size of the two or more files to the estimated compacted size of the two or more files satisfies a threshold; and

    in response to determining that the result of comparing the combined size of the two or more files to the estimated compacted size of the two or more files satisfies the threshold, compacting the two or more files to generate a single compacted file including multiple entries, where each entry of the single compacted file is a distinct entry that is not a garbage entry.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×