1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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: http://code.google.com/p/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.

WWW:	http://github.com/mailrank/double-conversion

Obtained from:	FreeBSD Haskell
This commit is contained in:
Gabor Pali 2011-08-14 17:46:17 +00:00
parent c55c427673
commit 5e2cffad94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279713
6 changed files with 49 additions and 0 deletions

View File

@ -61,6 +61,7 @@ digest_port= security/hs-digest
directory-tree_port= devel/hs-directory-tree
distributive_port= math/hs-distributive
dlist_port= devel/hs-dlist
double-conversion_port= textproc/hs-double-conversion
enumerator_port= devel/hs-enumerator
erf_port= math/hs-erf
fastcgi_port= www/hs-fastcgi # lib_depends

View File

@ -239,6 +239,7 @@
SUBDIR += hs-bytestring-csv
SUBDIR += hs-case-insensitive
SUBDIR += hs-citeproc-hs
SUBDIR += hs-double-conversion
SUBDIR += hs-feed
SUBDIR += hs-highlighting-kate
SUBDIR += hs-hs-bibutils

View File

@ -0,0 +1,20 @@
# New ports collection makefile for: hs-double-conversion
# Date created: July 13, 2011
# Whom: haskell@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= double-conversion
PORTVERSION= 0.2.0.1
CATEGORIES= textproc haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Fast conversion between double-precision floating point and text
LICENSE= BSD
USE_CABAL= text>=0.11.0.6
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (cabal/double-conversion-0.2.0.1.tar.gz) = 0a1845b663d45e029255b3e2f5a5f0995f39cb3ddf128f38c514cc523693d190
SIZE (cabal/double-conversion-0.2.0.1.tar.gz) = 6831038

View File

@ -0,0 +1,11 @@
--- ./double-conversion.cabal.orig 2011-06-29 07:47:53.000000000 +0200
+++ ./double-conversion.cabal 2011-07-14 06:13:05.343763049 +0200
@@ -82,7 +82,7 @@
base == 4.*,
bytestring,
ghc-prim,
- text >= 0.11.0.8
+ text >= 0.11.0.6
if flag(developer)
ghc-options: -Werror

View File

@ -0,0 +1,14 @@
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: http://code.google.com/p/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.
WWW: http://github.com/mailrank/double-conversion