Skip to main content

Efficient representations of large sets of integers

Project description

IntSets are an efficient immutable representation of sets of unsigned 64-bit integers with fast boolean operations and fast indexing of the set in sorted order. They are designed to be particularly efficient for representing sets with large contiguous ranges, so for example representing the set of all 64-bit integers takes only a handful of bytes.

Their behaviour and API are somehwere in between that of frozenset and that of a sorted list of deduplicated integers.

The implementation is heavily based on Fast Mergeable Integer Maps by Okasaki and Gill, but it has been adapted to support a somewhat different feature set and a more compact representation for certain usage patterns.

For usage, see the API documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intset-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distributions

intset-1.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

intset-1.0.0-py2-none-any.whl (9.8 kB view details)

Uploaded Python 2

File details

Details for the file intset-1.0.0.tar.gz.

File metadata

  • Download URL: intset-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for intset-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2d38e6ae3fdde77aa321123796d38a6dd3e2bb53732e128d262b16848fffbb6d
MD5 6cdbe59e247eb00c3b486cde3127b168
BLAKE2b-256 b3d9ab572c56e59b936623920b4235239103652c80f7c0fee1d9277931d28afb

See more details on using hashes here.

File details

Details for the file intset-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for intset-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c2b9424a1a12faeb403f3300a5efc3add94a5672af5cc980f616c407ce0e6f6
MD5 ce2713ce8f51e530779e197f4bdea861
BLAKE2b-256 b481875700ca16401e7cf4e3256a5ef85c66a5f57690ac8e310a6ddc94419bb9

See more details on using hashes here.

File details

Details for the file intset-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for intset-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 3f9957b52421af15e72081fb5eeca6a5538774d4b0d642c3bb40084e5ed12db9
MD5 5a3b9c35cb327347873f09fe149e0b33
BLAKE2b-256 526a0bee2e66988f9c35705b03207e901eb22918b1976d12ce8c0cd870d63c4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page