text-short: Memory-efficient representation of Unicode text strings
This 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
uses UTF-8 instead of UTF-16 internally and also doesn't support zero-copy slicing (thereby saving 2 words). 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.
Flags
Manual Flags
Name | Description | Default |
---|---|---|
asserts | Enable runtime-checks via | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- text-short-0.1.4.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.7 && <4.17), binary (>=0.7.1 && <0.9), bytestring (>=0.10.4 && <0.12), deepseq (>=1.3 && <1.5), ghc-prim (>=0.3.1 && <0.9), hashable (>=1.2.6 && <1.5), semigroups (>=0.18.2 && <0.21), template-haskell (>=2.9.0.0 && <2.19), text (>=1.0 && <1.3) [details] |
Tested with | ghc ==9.0.1, ghc ==8.10.4, ghc ==8.8.3, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2, ghc ==7.10.3, ghc ==7.8.4, ghc ==9.2.1 |
License | BSD-3-Clause |
Author | Herbert Valerio Riedel |
Maintainer | hvr@gnu.org |
Revised | Revision 2 made by phadej at 2021-11-16T14:12:04Z |
Category | Data |
Bug tracker | https://github.com/hvr/text-short/issues |
Source repo | head: git clone https://github.com/hvr/text-short.git |
Uploaded | by phadej at 2021-10-10T17:12:54Z |
Distributions | Arch:0.1.6, Debian:0.1.3, Fedora:0.1.5, LTSHaskell:0.1.6, NixOS:0.1.6, Stackage:0.1.6, openSUSE:0.1.6 |
Reverse Dependencies | 59 direct, 7916 indirect [details] |
Downloads | 38800 total (435 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2021-10-10 [all 1 reports] |