aboutsummaryrefslogtreecommitdiff
path: root/devel/py-immutables/pkg-descr
blob: 1a3000e45209ed6f1b5b27208e4172610f5a6b5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
An immutable mapping type for Python.

The underlying datastructure is a Hash Array Mapped Trie (HAMT) used in Clojure,
Scala, Haskell, and other functional languages. This implementation is used in
CPython 3.7 in the contextvars module (see PEP 550 and PEP 567 for more
details).

Immutable mappings based on HAMT have O(log N) performance for both set() and
get() operations, which is essentially O(1) for relatively small mappings.

WWW: https://github.com/MagicStack/immutables