Vacuum filter
A vacuum filter is an approximate-membership structure that stores fingerprints in buckets and uses locality-aware relocation to reduce capacity-rounding waste.
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. [1]
IUPR 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. [1]
The 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. [2]
At 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. [3]
Smaller 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. [4]
Relations
- related
- Cuckoo filter, Blocked Bloom filter
Limitations
- Insertion, deletion and concurrent replacement must obey the update contract; a probabilistic positive is not proof that a key may safely be removed. [1]
- The native probe checks four deterministic sets and memory accounting. It does not measure false-positive frequency, concurrency safety, saturation or current production performance. [3]
Citations
- Wang et al. Vacuum Filters: More Space-Efficient and Faster Replacement for Bloom and Cuckoo Filters. PVLDB 13(2), 2019, sections 3 and 5.
- wuwuz/Vacuum-Filter, ec234bfc189a: standalone vacuum.h, inline encoding tables, init and get_bits_per_item.
- Hesela. Vacuum filter memory boundaries: native C++ probe, four complete observations and reproduction instructions.
- Lang et al. Performance-Optimal Filtering: Bloom Overtakes Cuckoo at High Throughput. PVLDB 12(5), 2019, sections 2 and 4.
Sources & caveats
- 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.