BSD Ports

textproc/hs-text-short 0.1.6nb3 NetBSD

Memory-efficient representation of Unicode text strings

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
textproc
Package size
198.4 KiB, 1939.3 KiB installed

Description

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 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.

Install

Binary package:

pkgin install hs-text-short

From pkgsrc:

cd /usr/pkgsrc/textproc/hs-text-short && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.1.6nb3
NetBSD 10.1 aarch640.1.6nb3
SmartOS / illumos x86_640.1.6nb3
macOS 15 arm640.1.6nb3

Dependencies

Run dependencies 2