Top 0.4% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org
Top 1.0% docker downloads on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/jrick/bitset
License: ISC
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/jrick
Dependent packages: 125
Dependent repositories: 147
Stars: 6 on GitHub
Forks: 12 on GitHub
Docker dependents: 6
Docker downloads: 5,988
See more repository details: repos.ecosyste.ms
Last synced: 22 days ago