Path to this page:
./
textproc/hs-text-short,
Memory-efficient representation of Unicode text strings
Branch: CURRENT,
Version: 0.1.6nb1,
Package name: hs-text-short-0.1.6nb1,
Maintainer: pkgsrc-usersThis package provides the ShortText type which is suitable for keeping many
short strings in memory. This is similiar to how ShortByteString relates
to ByteString.
The main difference between Text and ShortText is that ShortText doesn't support
zero-copy slicing (thereby saving 2 words), and, compared to text-1.*, that it
uses UTF-8 instead of UTF-16 internally. Consequently, the memory footprint of a
(boxed) ShortText value is 4 words (2 words when unboxed) plus the length of the
UTF-8 encoded payload.
Required to run:[
devel/hs-hashable] [
lang/ghc94]
Master sites:
Filesize: 24.112 KB
Version history: (Expand)
- (2025-02-02) Updated to version: hs-text-short-0.1.6nb1
- (2025-01-30) Updated to version: hs-text-short-0.1.6
- (2024-05-09) Updated to version: hs-text-short-0.1.5nb6
- (2023-11-02) Updated to version: hs-text-short-0.1.5nb5
- (2023-10-09) Updated to version: hs-text-short-0.1.5nb4
- (2023-02-09) Updated to version: hs-text-short-0.1.5nb3
CVS history: (Expand)