text-short: Memory-efficient representation of Unicode text strings
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- 'cc-options: -O[n]' is generally not needed. When building with optimisations Cabal automatically adds '-O2' for C code. Setting it yourself interferes with the --disable-optimization flag.
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.
Properties
Versions | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.3, 0.1.4, 0.1.5, 0.1.6 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.7 && <4.13), binary (>=0.7.1 && <0.9), bytestring (>=0.10.4 && <0.11), deepseq (>=1.3 && <1.5), ghc-prim (>=0.3.1 && <0.6), hashable (>=1.2.6 && <1.4), semigroups (>=0.18.2 && <0.20), text (>=1.0 && <1.3) [details] |
License | BSD-3-Clause |
Author | Herbert Valerio Riedel |
Maintainer | hvr@gnu.org |
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 HerbertValerioRiedel at 2019-07-20T15:36:24Z |
Modules
[Index] [Quick Jump]
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.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees