No project description provided
Project description
NumbDuck
Adapting DuckDB database API to the Numba JIT context.
Leverages bindings toolkit in the NumbOx project.
Inspired by the NumbSQL project.
Examples
Runnable narrative-style examples comparing numbduck against the closest stock
DuckDB Python+Arrow approaches live in examples/. Each script is
self-contained, generates its own data, and prints the measured numbers.
Highlights:
-
Throughput (haversine.py): JIT chunk callback is ~400× faster than a per-row Python scalar UDF (10K rows) and ~100× faster than a PyArrow expression UDF at 1M rows. The win comes from no Python crossings per chunk and LLVM-fused math with no intermediate arrays.
-
Latency + GIL-free (online_scoring.py): ~2.2× lower per-event latency vs pure-Python
conn.execute, and monotonic parallel scaling to ~2.4× on 8 threads while the Python loop plateaus under GIL contention. -
Branchy logic (fraud_score.py): Arrow's
pc.if_elsechain beats the Python scalar UDF by ~60× (Arrow is the right stock-DuckDB tool here). The JIT chunk callback then beats Arrow by ~16× at 10K and ~1750× at 1M rows — the gap grows because each Arrow UDF chunk crosses the Python boundary and allocates intermediates, while the JIT computes in registers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file numbduck-0.0.1-py3-none-any.whl.
File metadata
- Download URL: numbduck-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a26561c6b620544c7088ea224bc50fb8fefc54262321044ba2d11679d45d4f6
|
|
| MD5 |
c187a630cabc11b09e99f51a8f8438a4
|
|
| BLAKE2b-256 |
695c0e30ef1a3e307dcc16d097d45c9b0cf66359f73f3e9b16f81799af9169ae
|
Provenance
The following attestation bundles were made for numbduck-0.0.1-py3-none-any.whl:
Publisher:
release.yml on Goykhman/numbduck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
numbduck-0.0.1-py3-none-any.whl -
Subject digest:
7a26561c6b620544c7088ea224bc50fb8fefc54262321044ba2d11679d45d4f6 - Sigstore transparency entry: 1615863318
- Sigstore integration time:
-
Permalink:
Goykhman/numbduck@8a31691eba7474294945675d4e94608c1e2a62c3 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/Goykhman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8a31691eba7474294945675d4e94608c1e2a62c3 -
Trigger Event:
release
-
Statement type: