Skip to content

dunglas/skipfilter

 
 

Skipfilter

This package provides a data structure that combines a skip list with a roaring bitmap cache.

Go Reference Go Report Card

Note

This a maintained and improved fork of github.com/kevburnsjr/skipfilter

This library was created to efficiently filter a multi-topic message input stream against a set of subscribers, each having a list of topic subscriptions expressed as regular expressions. Ideally, each subscriber should test each topic at most once to determine whether it wants to receive messages from the topic.

In this case, the skip list provides an efficient discontinuous slice of subscribers and the roaring bitmap for each topic provides an efficient ordered discontinuous set of all subscribers that have indicated that they wish to receive messages on the topic.

Filter bitmaps are stored in a cache of variable size (default to unlimited).

This package is thread-safe.

About

An inverted bitmap index written in Go.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Go 100.0%