First Practical and General-purpose Range Filter
Switch branches/tags
Nothing to show
Clone or download
Huanchen Zhang Huanchen Zhang
Huanchen Zhang and Huanchen Zhang added a note to SuRF's constructor
Latest commit cbf2358 Nov 13, 2018

Succinct Range Filter (SuRF)

Build Status Coverage Status

SuRF is a fast and compact filter that provides exact-match filtering, range filtering, and approximate range counts. This is the source code for our SIGMOD best paper. We also host a demo website. The RocksDB experiments with SuRF can be found here.

Install Dependencies

sudo apt-get install build-essential cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib


git submodule init
git submodule update
mkdir build
cd build
cmake ..
make -j

Simple Example

A simple example can be found here. To run the example:

g++ -mpopcnt -std=c++11 simple_example.cpp

Note that the key list passed to the SuRF constructor must be SORTED.

Run Unit Tests

make test


Step 1: Download YCSB

cd bench/workload_gen

Step 2: Generate Workloads

cd bench/workload_gen

You must provide your own email list to generate email-key workloads.

Step 3: Run Workloads

cd bench

Note that only includes several representative runs. Refer to bench/workload.cpp, bench/workload_multi_thread.cpp and bench/workload_arf.cpp for more experiment configurations.


Copyright 2018, Carnegie Mellon University

Licensed under the Apache License.