set_list 0.2.0
set_list: ^0.2.0 copied to clipboard
Sorted lists are a pretty efficient way to represent and operate over sets. This library does that.
Sorted lists are a pretty efficient way to represent and operate over sets. This library does that.
It's 10x slower than HashSets for membership checks, but about 2x faster for intersections, unions and difference queries (probably because those often require scanning over the entire set), even at very small sizes (seemingly because these operations require constructing the output set, and HashSets seem quite costly to construct).