svn commit: r406959 - in head/math: . py-cdecimal

Maxim Sobolev sobomax at FreeBSD.org
Sat Jan 23 02:58:22 UTC 2016


Author: sobomax
Date: Sat Jan 23 02:58:20 2016
New Revision: 406959
URL: https://svnweb.freebsd.org/changeset/ports/406959

Log:
  Add py-cdecimal, a fast drop-in replacement for the Decimal module
  in python < 3.3.

Added:
  head/math/py-cdecimal/
  head/math/py-cdecimal/Makefile   (contents, props changed)
  head/math/py-cdecimal/distinfo   (contents, props changed)
  head/math/py-cdecimal/pkg-descr   (contents, props changed)
Modified:
  head/math/Makefile

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Sat Jan 23 01:41:51 2016	(r406958)
+++ head/math/Makefile	Sat Jan 23 02:58:20 2016	(r406959)
@@ -581,6 +581,7 @@
     SUBDIR += py-bitmath
     SUBDIR += py-bitvector
     SUBDIR += py-bottleneck
+    SUBDIR += py-cdecimal
     SUBDIR += py-colormath
     SUBDIR += py-cryptominisat
     SUBDIR += py-fastcluster

Added: head/math/py-cdecimal/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-cdecimal/Makefile	Sat Jan 23 02:58:20 2016	(r406959)
@@ -0,0 +1,18 @@
+# Created by: Maksym Sobolyev <sobomax at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	cdecimal
+PORTVERSION=	2.3
+CATEGORIES=	math
+MASTER_SITES=	http://www.bytereef.org/software/mpdecimal/releases/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ports at FreeBSD.org
+COMMENT=	Fast drop-in replacement for the Decimal module
+
+LICENSE=	BSD2CLAUSE
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+.include <bsd.port.mk>

Added: head/math/py-cdecimal/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-cdecimal/distinfo	Sat Jan 23 02:58:20 2016	(r406959)
@@ -0,0 +1,2 @@
+SHA256 (cdecimal-2.3.tar.gz) = d737cbe43ed1f6ad9874fb86c3db1e9bbe20c0c750868fde5be3f379ade83d8b
+SIZE (cdecimal-2.3.tar.gz) = 361809

Added: head/math/py-cdecimal/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-cdecimal/pkg-descr	Sat Jan 23 02:58:20 2016	(r406959)
@@ -0,0 +1,18 @@
+The cdecimal is a fast drop-in replacement for the decimal module in Python's
+standard library. Both modules provide complete implementations of the General
+Decimal Arithmetic Specification.
+
+Typical performance gains are between 30x for I/O heavy benchmarks and 80x for
+numerical programs. In a database benchmark, cdecimal exhibits a speedup of
+12x over decimal.py.
+
+ 	decimal	cdecimal speedup
+pi	42.75s	0.58s	 74x
+telco	172.19s	5.68s	 30x
+psycopg	3.57s	0.29s	 12x
+
+All Python versions from 2.5 up to 3.2 are supported. For the few remaining
+differences, read the cdecimal documentation. cdecimal has been included in
+Python-3.3.
+
+WWW: http://www.bytereef.org/mpdecimal/index.html


More information about the svn-ports-all mailing list