From nobody Sun Aug 6 15:36:39 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RJk873zV7z4Tv76; Sun, 6 Aug 2023 15:36:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJk873DSgz3MSF; Sun, 6 Aug 2023 15:36:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691336199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XyPjthzGrTzn/R1kDE9d+8WszKknTYvJMEhg4Q4YAJE=; b=qNuTV1AKaaVdRYPri1UmupbTeCxKJRCUBLzNFuOXtsnk6FqaMvx/0WDjV0nG7Ly0/nCiAo xs+kDoq4mhT3aPSZUHHJhT9efTkwSnNxMI4WL2spSHhX3yYJSB9ExjXGU7wsGjGt4sjLXQ 4MyIOPLrV1uW8FwEIjxy8CUUcRuqJa8oiqeIXVlMsMn2fN6nuZ3VTJYW6fW0aAZHSy6A82 g/QCB5vcFMow3XBjMIPmHm4dPqV44muWr+zRpPR25fmn/qOonTs1XhXvd0xRk2JRiIGKmi oyIr4QBPBQF7ihqcephaD8pmP3r6c6A5I86QSsUXgtCEOAjZjYFEi5Bozj7Iaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691336199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XyPjthzGrTzn/R1kDE9d+8WszKknTYvJMEhg4Q4YAJE=; b=jvYJxt06FXkpKJkoJc2bE0N2dYdSxdvx/ZAKJJwzId/QdmjovrB8+BnovcSocFW9ovQOMM NCUbkvOjTIuwxUg5aEtX/vsoNudLFDyeURFlpp++P919+zjHtJcwXvMyWv5qEvv1no+M9m m7vetjH0njcdLr585dVMGruAOdv7+ihGKb/lP+4E+CGRJS67f5vPrqC1F71Pn7AT+/Ys63 Oppd6eFKijyG3XG0qq8sGrJVlp1JeDx6CoGG46B8J9mH3piImCUP0VpLHTjBmN2xyUPtyO s8OES/JOXuIgTe0iMIWdGULJXOB1DgkypxcynvI3dvDZp2Qz1BIM6UQ0Hf1KGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691336199; a=rsa-sha256; cv=none; b=ZhopfhqdOHciUYwjKyIQ73B2NxXyrgx1LuDXO47W4TgmZZd5M3vYSpPbZkUaa1oiyVNGXl jVMth4GW/7O6bSICQe9zed10FJgS7KfGJOylGPMn16BgdpAy4wSs/E6AZS6dOQOJHm9Hwx gM1O0MmeC3XYin3xE6EBgKA7WptCDyXRguuiy8cempjDJd8N3ustBu3FaAeghm2i8v6JdQ XSZqaohjfg2skS0l6XTTIbxVVjQRXwl4K7hFwbMb7XqfWoOhzjXDW+0eIhjivYB5Xomjtu fpON5MlQJSJ4kWnxjLzq2rzxUcDOrnw9bh1CFwGUN3ZfckwCqobG0LBYitXyVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RJk872G22z1Z6; Sun, 6 Aug 2023 15:36:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 376Fadpf042905; Sun, 6 Aug 2023 15:36:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 376FadeH042904; Sun, 6 Aug 2023 15:36:39 GMT (envelope-from git) Date: Sun, 6 Aug 2023 15:36:39 GMT Message-Id: <202308061536.376FadeH042904@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason W. Bacon" Subject: git: 21e0240b8fe6 - main - devel/py-cykhash: Cython equivalent to khash-sets/maps List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jwb X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 21e0240b8fe6a1552665bdc2e52c1b198e4df49c Auto-Submitted: auto-generated The branch main has been updated by jwb: URL: https://cgit.FreeBSD.org/ports/commit/?id=21e0240b8fe6a1552665bdc2e52c1b198e4df49c commit 21e0240b8fe6a1552665bdc2e52c1b198e4df49c Author: Jason W. Bacon AuthorDate: 2023-08-06 15:34:43 +0000 Commit: Jason W. Bacon CommitDate: 2023-08-06 15:36:37 +0000 devel/py-cykhash: Cython equivalent to khash-sets/maps Cykhash is a cython equivalent to khash-sets/maps, efficient implementation of isin and unique Benefits: Brings functionality of khash to Python and Cython and can be used seamlessly in numpy or pandas. Numpy's world is lacking the concept of a (hash-)set. This shortcoming is fixed and efficient (memory- and speedwise compared to pandas') unique and isin are implemented. Python-set/dict have big memory-footprint. For some datatypes the overhead can be reduced by using khash by factor 4-8. --- devel/py-cykhash/Makefile | 20 ++++++++++++++++++++ devel/py-cykhash/distinfo | 3 +++ devel/py-cykhash/pkg-descr | 14 ++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/devel/py-cykhash/Makefile b/devel/py-cykhash/Makefile new file mode 100644 index 000000000000..765dcbde2035 --- /dev/null +++ b/devel/py-cykhash/Makefile @@ -0,0 +1,20 @@ +PORTNAME= cykhash +DISTVERSION= 2.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= jwb@FreeBSD.org +COMMENT= Cython equivalent to khash-sets/maps +WWW= https://pypi.python.org/project/cykhash/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist cython distutils + +post-stage: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cykhash/*.so + +.include diff --git a/devel/py-cykhash/distinfo b/devel/py-cykhash/distinfo new file mode 100644 index 000000000000..07e7db282c6b --- /dev/null +++ b/devel/py-cykhash/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691328170 +SHA256 (cykhash-2.0.1.tar.gz) = b4794bc9f549114d8cf1d856d9f64e08ff5f246bf043cf369fdb414e9ceb97f7 +SIZE (cykhash-2.0.1.tar.gz) = 44895 diff --git a/devel/py-cykhash/pkg-descr b/devel/py-cykhash/pkg-descr new file mode 100644 index 000000000000..dc8460a45675 --- /dev/null +++ b/devel/py-cykhash/pkg-descr @@ -0,0 +1,14 @@ +Cykhash is a cython equivalent to khash-sets/maps, efficient +implementation of isin and unique + +Benefits: + + Brings functionality of khash to Python and Cython and can be used + seamlessly in numpy or pandas. + + Numpy's world is lacking the concept of a (hash-)set. This + shortcoming is fixed and efficient (memory- and speedwise compared + to pandas') unique and isin are implemented. + + Python-set/dict have big memory-footprint. For some datatypes the + overhead can be reduced by using khash by factor 4-8.