quill-fastsort-simd
Single-threaded radix sort backend for quill-sort. Portable C++17 build, compiling natively on macOS (arm64/x86_64), Linux (x86_64/aarch64) and Windows.
Provides the entry points quill._backends.SimdCompanionBackend (backend name
simd_companion) probes for:
sort_i64 sort_u64 sort_i32
sort_u32 sort_f64 sort_f32
Each sorts a contiguous, writable numpy buffer of the matching dtype in place,
ascending. The kernel is quillcore::serial_sort — a single-threaded 8-bit LSD
radix sort. It is the SIMD-friendly companion with a conservative min_n in
quill, so small arrays fall back to the dispatcher's default path.
- Never-lose: results are identical to
np.sorton NaN-free numeric data (verified exhaustively againstnp.sortacross dtypes, sizes and adversarial distributions). NaN is stripped by the Quill dispatcher before any kernel runs.
Build
pip install . # needs only a C++17 compiler
The sort kernels are header-only (src/quill_core.hpp, a synced copy of
companions/_core/quill_core.hpp — run companions/sync_core.sh after editing
the canonical core). No numpy headers or third-party libraries are required.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 quill_fastsort_simd-0.2.0.tar.gz.
File metadata
- Download URL: quill_fastsort_simd-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31039a73f8b9f657ab58b48460159b5ab564f6d0cf52984f60aef5de9025605c
|
|
| MD5 |
3de70900480cb28772a2004321a14c41
|
|
| BLAKE2b-256 |
984a4c485a9a2740249e04d5144b690793d99f80be6d7a2b25c8079974169e7f
|
File details
Details for the file quill_fastsort_simd-0.2.0-cp313-cp313-macosx_12_0_arm64.whl.
File metadata
- Download URL: quill_fastsort_simd-0.2.0-cp313-cp313-macosx_12_0_arm64.whl
- Upload date:
- Size: 8.5 kB
- Tags: CPython 3.13, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c904e07e4ead2d8d4e6df28f2ec40dc3f55eb981088d5d7f8775b0c9330713db
|
|
| MD5 |
dcd5a5dca2762382d7379c3bbb072d66
|
|
| BLAKE2b-256 |
83ef0486f65953a4717573286b5bde16a3e39fc9fdaef111b95172b101b59ac5
|