Description
Memory-efficient string-indexed container types.
Description
This package provides memory-optimised implementations of string-indexed container types.
The API is aligned with the naming convention of the containers package's API.
The following data-structures are provided:
Data.TextArray.UnboxedArray of unboxed
ShortTextstrings.Data.TextSet.UnboxedSet of unboxed
ShortTextstrings.Data.TextMap.Unboxed.LazyAssociative map from unboxed
ShortTextkeys to non-strict values.
Where unboxed ShortText refers to strings being stored in their UTF-8 representation without any alignment/padding back-to-back thereby providing good memory locality for index operations, avoiding pointer chasing, as well as increasing memory efficiency by reducing memory waste due to alignment.