# 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
```python
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/cppradixsort",
"name": "cppradixsort",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "parallel_radixsort,c++,numpy,sort",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/5f/f5/6f47d8fa3ddc0cb53b3eb281582dca99af16ac07203521895624dac45d4d/cppradixsort-0.10.tar.gz",
"platform": null,
"description": "\n# parallel_radixsort from C++ for Python (Windows)\n\n\n\n## pip install cppradixsort\n\n\n\n#### Microsoft Visual C++ Redistributable is necessary\n\nhttps://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170\n\n\n\n\n\n\n\n```python\n\nfrom cppradixsort import parallel_radixsort\n\n\n\nimport numpy as np\n\n\n\na1 = np.random.randint(0, 2000000, 1000000)\n\na2 = parallel_radixsort(a1)\n\n\n\n# a1\n\n# Out[3]: array([ 173641, 1852805, 1959843, ..., 1094448, 430953, 1021449])\n\n# a2\n\n# Out[4]: array([ 0, 0, 13, ..., 1999996, 1999996, 1999997])\n\n# %timeit parallel_radixsort(a1)\n\n# 4.96 ms \u00b1 32.6 \u00b5s per loop (mean \u00b1 std. dev. of 7 runs, 100 loops each)\n\n# %timeit np.sort(a1,kind='stable')\n\n# 63.8 ms \u00b1 72.9 \u00b5s per loop (mean \u00b1 std. dev. of 7 runs, 10 loops each)\n\n\n\n\n\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "parallel_radixsort from C++ for Python (Windows)",
"version": "0.10",
"split_keywords": [
"parallel_radixsort",
"c++",
"numpy",
"sort"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6e0c1b596287fcbe06db2964d81673d5e3c09db7d466904ddbbc7ef85cd65b84",
"md5": "fdeb09788fd9c045d4b3fdb4ef747abd",
"sha256": "3591173f52708e457dd0981d9c5d317e4ece90709d573770e9e62e9199c0b87c"
},
"downloads": -1,
"filename": "cppradixsort-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fdeb09788fd9c045d4b3fdb4ef747abd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 216120,
"upload_time": "2023-02-25T10:34:17",
"upload_time_iso_8601": "2023-02-25T10:34:17.955896Z",
"url": "https://files.pythonhosted.org/packages/6e/0c/1b596287fcbe06db2964d81673d5e3c09db7d466904ddbbc7ef85cd65b84/cppradixsort-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5ff56f47d8fa3ddc0cb53b3eb281582dca99af16ac07203521895624dac45d4d",
"md5": "9074f8e4622d4f3d34a05c58fcd3e9b9",
"sha256": "debde4137d9769fe8f2a9952d4a581df2f8bffd64b7d2ffade121403e5d9ae56"
},
"downloads": -1,
"filename": "cppradixsort-0.10.tar.gz",
"has_sig": false,
"md5_digest": "9074f8e4622d4f3d34a05c58fcd3e9b9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 215968,
"upload_time": "2023-02-25T10:34:19",
"upload_time_iso_8601": "2023-02-25T10:34:19.862891Z",
"url": "https://files.pythonhosted.org/packages/5f/f5/6f47d8fa3ddc0cb53b3eb281582dca99af16ac07203521895624dac45d4d/cppradixsort-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-25 10:34:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "cppradixsort",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "cppradixsort"
}