An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/jrick/bitset

Package bitset provides bitset implementations for bit packing binary values into pointers and bytes. A bitset, while logically equivalent to a []bool, is often preferable over a []bool due to the space and time efficiency of bit packing binary values. They are typically more space efficient than a []bool since (although implementation specifc) bools are typically byte size. Using a bitset in place of a []bool can therefore result in at least an 8x reduction in memory usage. While bitsets introduce bitshifting overhead for gets and sets unnecessary for a []bool, they may still more performant than a []bool due to the smaller data structure being more cache friendly. This package contains three bitset implementations: Pointers for efficiency, Bytes for situations where bitsets must be serialized or deserialized, and Sparse for when memory efficiency is the most important factor when working with sparse datasets.

Ecosystem
proxy.golang.org
Latest Release
v1.0.0
over 10 years ago
Versions
1
Dependent Packages
125
Dependent Repos
147
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/jrick/bitset
spec
License ISC
Namespace github.com/jrick
First Release over 10 years ago
Last Synced 3 days ago
Repository
Stars 6 on GitHub
Forks 12 on GitHub
Docker Dependents 6
Docker Downloads 5,988
Rankings on proxy.golang.org
Overall Top 4.0%
Dependent packages Top 0.4%
Dependent repos Top 0.5%
Forks Top 6.1%
Docker downloads Top 1.0%