flatsets
Flatsets are set-like containers that store elements in a flat, contiguous sequence, typically a dynamically sized array. The elements are kept in a defined order, usually determined by a comparator, and duplicate elements are not allowed. The flat storage favors cache locality and compact memory usage compared to tree-based structures.
Operations on a flatset rely on the sorted arrangement. Membership tests, insertions, and deletions are usually
Performance characteristics differ from other common set implementations. Lookups generally run in O(log n) time due
Use cases for flatsets include read-heavy workloads with relatively small to medium-sized sets, where fast iteration