python-sortedcontainers
python-sortedcontainers copied to clipboard
add SortedArray
Support for a sorted container based off the standard library array.array class.
Enables compact storage of numerical values saving times fold in memory required.
Time performance is en par with the List based implementation below 1M size, and marginally better at 10M and 100M size, as tested on M1 Max 64GB RAM

It’s reasonable except for the lack of array.array.sort. Can you get support for that upstream? I haven’t searched bugs.python.org but it’s worth researching.
It’s reasonable except for the lack of array.array.sort. Can you get support for that upstream? I haven’t searched bugs.python.org but it’s worth researching.
Looks more like PEP rather than a bug to me. I found none. Is it a good one to request?
Before the array.sort() becomes a thing, we can try RADIX sort in pure Python, O(N) memory, O(N) time. It even works for floats What do you think?