tiny_pq stores values associated with a priority, and provides functions for purging low-priority items efficiently. Internally, tiny_pq uses gb_trees, so you are welcome to use any gb_trees functions as well. tiny_pq is ideal for services with some notion of expiration, e.g. sessions, caches, message queues, etc.
taoxie / tiny_pq Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chicagoboss/tiny_pq
A priority queue based on gb_trees