{
  "slug": "vacuum-filter",
  "term": "Vacuum filter",
  "aliases": [
    "Vacuum membership filter"
  ],
  "definition": "A vacuum filter is an approximate-membership structure that stores fingerprints in buckets and uses locality-aware relocation to reduce capacity-rounding waste.",
  "note": "Vacuum filters balance bucket locality and occupancy; they do not simply apply XOR and modulo to an arbitrary cuckoo table. The design uses several alternate ranges and looks one eviction step ahead. [vacuum-paper]\n\nIUPR rebuilds from the full backing set while a dynamic chain serves queries. Updates during reconstruction must reach the replacement before installation. Rebuilding removes duplicate-insertion overhead, not fingerprint ambiguity. Deletion requires a valid prior insertion. [vacuum-paper]\n\nThe pinned standalone vacuum.h stores two per-object arrays of 65,536 uint32_t entries: 524,288 bytes (512 KiB). Its memory_consumption and get_bits_per_item() count the separate fingerprint table, excluding those arrays and other object fields. Other implementations can differ. [vacuum-code]\n\nAt 10,000 successfully inserted keys, a native 16-bit filter requested 23,056 table bytes. Object plus table totaled 547,432 bytes in the tested ABI: 18.4448 versus 437.9456 bits per key. These are declared object and requested table bytes, not process RSS. Four deterministic sets, from 1,000 to 1,000,000 keys, passed every inserted-key lookup. Code, observations and accounting tests are linked. [hesela-accounting]\n\nSmaller filters need not make a workload faster. Lang and colleagues compare lookup cost, false-positive follow-up work and rejectable queries. Their blocked-Bloom results are context, not a direct benchmark of Vacuum filters. [performance-paper]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Insertion, deletion and concurrent replacement must obey the update contract; a probabilistic positive is not proof that a key may safely be removed.",
      "citationIds": [
        "vacuum-paper"
      ]
    },
    {
      "text": "The native probe checks four deterministic sets and memory accounting. It does not measure false-positive frequency, concurrency safety, saturation or current production performance.",
      "citationIds": [
        "hesela-accounting"
      ]
    }
  ],
  "related": [
    "cuckoo-filter",
    "blocked-bloom-filter"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "citations": [
    {
      "id": "vacuum-paper",
      "title": "Wang et al. Vacuum Filters: More Space-Efficient and Faster Replacement for Bloom and Cuckoo Filters. PVLDB 13(2), 2019, sections 3 and 5.",
      "url": "https://www.vldb.org/pvldb/vol13/p197-wang.pdf",
      "accessed": "2026-12-02"
    },
    {
      "id": "vacuum-code",
      "title": "wuwuz/Vacuum-Filter, ec234bfc189a: standalone vacuum.h, inline encoding tables, init and get_bits_per_item.",
      "url": "https://github.com/wuwuz/Vacuum-Filter/blob/ec234bfc189af9e6180688495535c623ad352190/vacuum.h",
      "accessed": "2026-12-02"
    },
    {
      "id": "hesela-accounting",
      "title": "Hesela. Vacuum filter memory boundaries: native C++ probe, four complete observations and reproduction instructions.",
      "url": "https://hesela.dev/research/vacuum-accounting/README.md",
      "accessed": "2026-12-02"
    },
    {
      "id": "performance-paper",
      "title": "Lang et al. Performance-Optimal Filtering: Bloom Overtakes Cuckoo at High Throughput. PVLDB 12(5), 2019, sections 2 and 4.",
      "url": "https://www.vldb.org/pvldb/vol12/p502-lang.pdf",
      "accessed": "2026-12-02"
    }
  ],
  "provenance": [
    "Primary-paper synthesis plus a native accounting probe executed on 2026-12-02. No reproduction of the papers' throughput experiments is claimed.",
    "The probe uses the standalone semi-sorted VacuumFilter<uint16_t, 16>, not the repository's separate ModifiedCuckooFilter implementation. Source hashes and compiler flags are recorded in result.json.",
    "Object layout can depend on ABI. The reported total excludes allocator bookkeeping, shared code, temporary stack and page residency; it adds sizeof(object) and the requested T allocation exactly once."
  ]
}
