double-conversion: Fast conversion between double precision floating point and text
A library that performs fast, accurate conversion between double precision floating point and text.
This library is implemented as bindings to the C++
double-conversion
library written by Florian Loitsch at Google:
https://github.com/floitsch/double-conversion.
The Text
versions of these functions are about 30 times faster
than the default show
implementation for the Double
type.
The ByteString
versions are slower than the Text
versions;
roughly half the speed. (This seems to be due to the cost of
allocating ByteString
values via malloc
.)
As a final note, be aware that the bytestring-show
package is
about 50% slower than simply using show
.
[Skip to Readme]
Versions [faq] | 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.0.3, 0.2.0.4, 0.2.0.5, 0.2.0.6, 2.0.1.0, 2.0.2.0 |
---|---|
Dependencies | base (==4.*), bytestring, ghc-prim, text (>=0.11.0.8) [details] |
License | BSD-3-Clause |
Author | Bryan O'Sullivan <bos@serpentine.com> |
Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
Category | Text |
Home page | https://github.com/bos/double-conversion |
Bug tracker | https://github.com/bos/double-conversion/issues |
Source repo | head: git clone https://github.com/bos/double-conversion head: hg clone https://bitbucket.org/bos/double-conversion |
Uploaded | by BryanOSullivan at 2016-12-13T19:37:41Z |
Distributions | Arch:2.0.2.0, Debian:2.0.2.0, FreeBSD:2.0.1.0, LTSHaskell:2.0.2.0, NixOS:2.0.2.0, Stackage:2.0.2.0, openSUSE:2.0.2.0 |
Downloads | 36154 total (322 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2016-12-13 [all 1 reports] |
Flags
Name | Description | Default | Type |
---|---|---|---|
developer | operate in developer mode | Disabled | Manual |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- double-conversion-2.0.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)