set_list 0.2.0 copy "set_list: ^0.2.0" to clipboard
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).

0
likes
150
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Sorted lists are a pretty efficient way to represent and operate over sets. This library does that.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on set_list