bytestring-plain

Plain byte strings ('ForeignPtr'-less 'ByteString's) https://github.com/hvr/bytestring-plain

Latest on Hackage:0.1.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Herbert Valerio Riedel
Maintained by hvr@gnu.org

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

Changes

0.1.0.2 Sep 2015

  • Add support for GHC 7.10 & deepseq 1.4

0.1.0.1 Nov 2013

  • Add support for GHC 7.7

0.1.0.0 Aug 2013

  • Initial release
Used by 1 package:
comments powered byDisqus