Efficient implementation of a Bloom filter in C?

Aman Deep Gautam picture Aman Deep Gautam · Jun 13, 2012 · Viewed 13.6k times · Source

This question has been asked previously but there was no answer for it at that time so I decided to ask it again.

I need an efficient implementation of a Bloom filter in C (not C++). If there is no such thing available, I would not mind implementing one, if given some good reference so that it doesn't take too much of my time.

I want to use this data structure for inserts and tests in a ratio (1:20k), so primarily it is test-intensive. The data to be tested is 64 bit integers.

Answer

Jyri J. Virkki picture Jyri J. Virkki · Feb 13, 2013

I have a stand-alone plain C library here which may be of use: https://github.com/jvirkki/libbloom