Skip to content

Releases: Ezibenroc/PyRoaringBitMap

0.2.7

24 Jun 16:51
0.2.7
266705e
Compare
Choose a tag to compare
Version 0.2.7

0.2.6

20 Nov 14:56
0.2.6
5fc3a3f
Compare
Choose a tag to compare
Version 2.5.6

0.2.5

10 Sep 11:09
0.2.5
ca5e2cc
Compare
Choose a tag to compare
Version 0.2.5

0.2.4

30 Jul 11:32
0.2.4
3c3e3be
Compare
Choose a tag to compare
Version 0.2.4

0.2.3

25 Jun 08:29
0.2.3
6d68935
Compare
Choose a tag to compare
Version 0.2.3

0.2.2

11 Jun 13:49
0.2.2
a6e2137
Compare
Choose a tag to compare
Version 0.2.2

0.2.1

02 Jun 17:15
0.2.1
3d42028
Compare
Choose a tag to compare
Version 0.2.1

FrozenBitmap

02 Jun 15:06
0.2.0
f23883b
Compare
Choose a tag to compare

FrozenBitMap

The major addition of this release is the new class FrozenBitMap. It is analogous to the frozenset of the standard library: a FrozenBitMap is an immutable object that can be hashed.
The main usecase is to use them in sets or dictionnaries:

from pyroaring import FrozenBitMap
mydict = {FrozenBitMap() : 'an empty bitmap',
          FrozenBitMap([1, 3, 5, 7, 9]) : 'some odd numbers',
          FrozenBitMap([1, 2, 4, 8, 16]) : 'powers of two'
}

Optimizations

Several performance optimizations have been implemented :

  • Getting a small slice from a large bitmap used to be very long. This is now fixed.
  • Two methods run_optimize() and shrink_to_fit() have been added. They call their CRoaring counterpart.

Information

The version number and the git hash of both pyroaring and CRoaring are available from the module:

import pyroaring
print(pyroaring.__version__)
print(pyroaring.__git_version__)
print(pyroaring.__croaring_version__)
print(pyroaring.__croaring_git_version__)