Skip to main content

parallel_radixsort from C++ for Python (Windows)

Project description

parallel_radixsort from C++ for Python (Windows)

pip install cppradixsort

Microsoft Visual C++ Redistributable is necessary

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

from cppradixsort import parallel_radixsort



import numpy as np



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

a2 = parallel_radixsort(a1)



# a1

# Out[3]: array([ 173641, 1852805, 1959843, ..., 1094448,  430953, 1021449])

# a2

# Out[4]: array([      0,       0,      13, ..., 1999996, 1999996, 1999997])

# %timeit parallel_radixsort(a1)

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

# %timeit np.sort(a1,kind='stable')

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cppradixsort-0.10.tar.gz (216.0 kB view details)

Uploaded Source

Built Distribution

cppradixsort-0.10-py3-none-any.whl (216.1 kB view details)

Uploaded Python 3

File details

Details for the file cppradixsort-0.10.tar.gz.

File metadata

  • Download URL: cppradixsort-0.10.tar.gz
  • Upload date:
  • Size: 216.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cppradixsort-0.10.tar.gz
Algorithm Hash digest
SHA256 debde4137d9769fe8f2a9952d4a581df2f8bffd64b7d2ffade121403e5d9ae56
MD5 9074f8e4622d4f3d34a05c58fcd3e9b9
BLAKE2b-256 5ff56f47d8fa3ddc0cb53b3eb281582dca99af16ac07203521895624dac45d4d

See more details on using hashes here.

File details

Details for the file cppradixsort-0.10-py3-none-any.whl.

File metadata

  • Download URL: cppradixsort-0.10-py3-none-any.whl
  • Upload date:
  • Size: 216.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cppradixsort-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3591173f52708e457dd0981d9c5d317e4ece90709d573770e9e62e9199c0b87c
MD5 fdeb09788fd9c045d4b3fdb4ef747abd
BLAKE2b-256 6e0c1b596287fcbe06db2964d81673d5e3c09db7d466904ddbbc7ef85cd65b84

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page