From owner-svn-ports-all@freebsd.org Sat Jan 23 02:58:22 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9120A8EC31; Sat, 23 Jan 2016 02:58:21 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A86551388; Sat, 23 Jan 2016 02:58:21 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0N2wKWj026240; Sat, 23 Jan 2016 02:58:20 GMT (envelope-from sobomax@FreeBSD.org) Received: (from sobomax@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0N2wKlQ026236; Sat, 23 Jan 2016 02:58:20 GMT (envelope-from sobomax@FreeBSD.org) Message-Id: <201601230258.u0N2wKlQ026236@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sobomax set sender to sobomax@FreeBSD.org using -f From: Maxim Sobolev Date: Sat, 23 Jan 2016 02:58:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r406959 - in head/math: . py-cdecimal X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 02:58:22 -0000 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 +# $FreeBSD$ + +PORTNAME= cdecimal +PORTVERSION= 2.3 +CATEGORIES= math +MASTER_SITES= http://www.bytereef.org/software/mpdecimal/releases/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Fast drop-in replacement for the Decimal module + +LICENSE= BSD2CLAUSE + +USES= python +USE_PYTHON= distutils autoplist + +.include 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