Stretching Your Data With Taffy Filters

Jim Apple
9/4/2021
cs.DScs.DB

Official code: jbapple/libfilter (35 stars, C++, Apache-2.0, last commit 2023-08-09).

Abstract

Popular approximate membership query structures such as Bloom filters and cuckoo filters are widely used in databases, security, and networking. These structures represent sets approximately, and support at least two operations - insert and lookup; lookup always returns true on elements inserted into the structure; it also returns true with some probability $0 < \varepsilon < 1$ on elements not inserted into the structure.

Show full abstract

These latter elements are called false positives. Compensatory for these false positives, filters can be much smaller than hash tables that represent the same set. However, unlike hash tables, cuckoo filters and Bloom filters must be initialized with the intended number of inserts to be performed, and cannot grow larger - inserts beyond this number fail or significantly increase the false positive probability. This paper presents designs and implementations of filters than can grow without inserts failing and without meaningfully increasing the false positive probability, even if the filters are created with a small initial size. The resulting code is available on GitHub under a permissive open source license.

View on arXivView PDF

Code Implementations(1)

jbapple/libfilterOfficial100%
Apache-2.0

High-speed Bloom filters and taffy filters for C, C++, and Java

356C++, CMay 23, 20203 years agoApache-2.0
bloom-filterbloom-filtersbloomfilterccpp+3 more

Similar Papers

Cite this paper

@article{apple2021stretching,
  title  = {Stretching Your Data With Taffy Filters},
  author = {Jim Apple},
  year   = {2021},
  eprint = {2109.01947},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.01947}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.01947.svg)](https://codeofpaper.com/paper/2109.01947)

Discussion