Skip to main content

parallel_buffered_sort from C++ for Python (Windows)

pip install cppparallelbufferedsort

Microsoft Visual C++ Redistributable is necessary

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

from cppparallelbufferedsort import parallel_buffered_sort

import numpy as np



a1 = np.random.randint(0, 2000000, 1000000)

a2 = parallel_buffered_sort(a1)

fl = a1 / 3

f2 = parallel_buffered_sort(fl)

# Out[6]:

# array([0.00000000e+00, 6.66666667e-01, 1.33333333e+00, ...,

#        6.66664333e+05, 6.66664667e+05, 6.66664667e+05])



# %timeit parallel_buffered_sort(fl)

# 18.4 ms ± 128 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

# %timeit np.sort(fl)

# 61.5 ms ± 90.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)

Metadata

Release files for cppparallelbufferedsort 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cppparallelbufferedsort 0.10
File Size Uploaded Provenance Actions
cppparallelbufferedsort-0.10.tar.gz 183.9 kB Without provenance Details for cppparallelbufferedsort-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cppparallelbufferedsort 0.10
File Interpreter ABI Platform Actions
cppparallelbufferedsort-0.10-py3-none-any.whl Python 3 none any Details for cppparallelbufferedsort-0.10-py3-none-any.whl

Total release size: 368.6 kB

Release files / cppparallelbufferedsort-0.10.tar.gz

Download URL cppparallelbufferedsort-0.10.tar.gz
Size 183.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c0028696a68b7ba66bcb80ff7b9fd022cc17f4c9e4a6b4c0b39c82b7bbe3da5
BLAKE2b-256 checksum
How to use checksums
4ab17ce30a564317937fb28b87a19ec038034fcada2f2517089a56db1858b8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cppparallelbufferedsort-0.10-py3-none-any.whl

Download URL cppparallelbufferedsort-0.10-py3-none-any.whl
Size 184.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8610e872dff4046cdd89e644c24cb12816cf6ee142d8722a86bdaeaee169029
BLAKE2b-256 checksum
How to use checksums
80d6bb56d74fe138a1f5324c3710fb0d8493ea57f420e120f3826e26aa8bd418
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for cppparallelbufferedsort 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page