filecoin-project / go-bitfield

Other
4 stars 8 forks source link

IsEmpty & First read the entire bitset #23

Open Stebalien opened 4 years ago

Stebalien commented 4 years ago

Unfortunately, simply calling the internal RunIterator method pre-reads the entire bitset (for caching). There should be a non-caching version for IsEmpty and First.

Kubuxu commented 4 years ago

We can't really do that as we have to verify bitfield consistently.