A list where most (>95%) values will be None (or default)
Project description
Inspired by http://stackoverflow.com/q/17522753/78845
A “sparse list” is a list where most (say, more than 95% of) values will be None (or some other default) and for reasons of memory efficiency you don’t wish to store these (cf. http://en.wikipedia.org/wiki/Sparse_array ).
This implementation has a similar interface to Python’s built-in list but stores the data in a dictionary to conserve memory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sparse_list-0.1.tar.gz
(3.4 kB
view details)
File details
Details for the file sparse_list-0.1.tar.gz
.
File metadata
- Download URL: sparse_list-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9dfe24f27f9c13c217eea3b8885e50b8d3042476717fbfc8647e9a79c605bb3f
|
|
MD5 |
33f6510e563c36ab8ba8d5776daaa1f8
|
|
BLAKE2b-256 |
5493fc83d6448279d2845ae0c0b5f994c059dfa0bf10a19398ee978b11cabe4f
|