The bytestring-plain package

[ Tags: bsd3, data, library ] [ Propose Tags ]

More compact representation for strict ByteStrings avoiding the overhead and indirection caused by ForeignPtr.

This representation is useful to reduce the incurred memory overhead when operating with many small, long-lived, distinct byte strings (such as keys for containers).

See documentation in Data.ByteString.Plain for more details about this representation.

As an alternative, recent bytestring versions provide Data.ByteString.Short which has a similiar overhead but uses unpinned memory instead (and thus requires an additional string data copy in contrast to Data.ByteString.Plain which allows to share the string data with the associated Data.ByteString value).


Change log
Dependencies base (>=4.6 && <4.10), bytestring (==0.10.*), deepseq (>=1.2 && <1.5), ghc-prim (>=0.3 && <0.6), hashable (>=1.1.1 && <1.3) [details]
License BSD3
Copyright (c) 2013 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Category Data
Home page
Bug tracker
Source repository head: git clone
this: git clone v0.1.0.2)
Uploaded Mon Sep 7 21:16:00 UTC 2015 by HerbertValerioRiedel
Updated Thu Jun 16 13:22:37 UTC 2016 by HerbertValerioRiedel to revision 1
Distributions NixOS:
Downloads 843 total (28 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-09-07 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees