small-bytearray-builder: Serialize to a small byte arrays
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:
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
This is similar to the builder facilities provided by
Data.ByteString.Builder
. It is intended to be used in
situations where the following apply:
An individual entity will be serialized as a small number of bytes (less than 512).
A large number (more than 32) of entities will be serialized one after another without anything between them.
Unlike builders from the bytestring
package, these builders
do not track their state when they run out of space. A builder
that runs out of space simply aborts and is rerun at the beginning
of the next chunk. This strategy for building is suitable for most
CSVs and several line protocols (carbon, InfluxDB, etc.).
Properties
Versions | 0.1.0.0, 0.1.1.0, 0.1.1.0, 0.2.0.0, 0.2.1.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.3.3.0, 0.3.4.0, 0.3.7.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.12.0.0 && <5), byteslice (>=0.1 && <0.2), primitive (>=0.7 && <0.8), primitive-offset (>=0.2 && <0.3), run-st (>=0.1 && <0.2), vector (>=0.12.0.3 && <0.13) [details] |
License | BSD-3-Clause |
Copyright | 2019 Andrew Martin |
Author | Andrew Martin |
Maintainer | andrew.thaddeus@gmail.com |
Category | Data |
Home page | https://github.com/andrewthad/small-bytearray-builder |
Bug tracker | https://github.com/andrewthad/small-bytearray-builder/issues |
Uploaded | by andrewthad at 2019-07-30T12:48:08Z |
Modules
[Index] [Quick Jump]
- Data
- ByteArray
Flags
Manual Flags
Name | Description | Default |
---|---|---|
checked | Add bounds-checking to primitive array operations | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- small-bytearray-builder-0.1.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees