Skip to main content

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

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
sparse_list-0.1.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Jul 13, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page