PyQuickly
专门为Python加速的库,
安装
pip install pyquickly
更新日志
(No have) -> 0.1.0:
未修复任何BUG
1.更新is_prime() 时间复杂度 O(1) pyquickly.math.is_prime() 2.更新由C++编译的is_prime() 时间复杂度 O(1) pyquickly.c.math.is_prime()
0.1.0 -> 0.2.0:
未修复任何BUG
1.更新pow() 时间复杂度 O(log exp) pyquickly.math.pow() 2.更新由C++编译的pow() 时间复杂度 O(log exp) pyquickly.c.math.pow()
函数
时间复杂度
| --- | --- | --- | --- | | 函数 | 复杂度 | 功能 | 实现语言 | | pyquickly.math.is_prime(x:int) | O(1) | 判断x是否为质数 | Python | | pyquickly.c.math.is_prime(unint64_t x) | O(1) | 判断x是否为质数 | C++ | | pyquickly.math.pow(base:int, exp:int, mod:int) | O(log exp) | 返回 baseexp % mod | Python | | pyquickly.c.math.pow(uint64_t base, uint64_t exp, uint64_t mod) | O(log exp) | 返回 baseexp % mod | C++ |
pow 的 C++ 版用 Montgomery 约减 + 4 位滑动窗口做 64 位模幂(奇模数走 Montgomery, 偶模数自动退化为 128 位二进制模幂),参数范围均为 0~2**64-1、mod 不可为 0。
许可
MIT
Metadata
Release files for pyquickly 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyquickly-0.2.0.tar.gz | 89.5 kB | Without provenance | Details for pyquickly-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyquickly-0.2.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for pyquickly-0.2.0-cp313-cp313-win_amd64.whl |
Total release size: 192.0 kB
Release files / pyquickly-0.2.0.tar.gz
| Download URL | pyquickly-0.2.0.tar.gz |
|---|---|
| Size | 89.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
890420a050090a7329ec076415e4818ff8879363ef1e529896aa935e944ccad9
|
|
BLAKE2b-256 checksum How to use checksums |
ca05bbaac98772a091954806415d93cebcb216ad771af8ecbef513c285b48180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / pyquickly-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | pyquickly-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 102.5 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
915f66a533ea1b65e196ff908b730ed06dae91c83460950f202d93b584347bc2
|
|
BLAKE2b-256 checksum How to use checksums |
2efc1f38926afb115553bd284851e45d6c3095554727448b83c56fdae1678eeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for pyquickly 0.2.0
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.