A C-extension library that outperforms NumPy via O(1) complexity.
Project description
KS-Engine: O(1) Complexity via Mathematical Induction & Inline ASM
KS-Engine is a high-performance C-extension library designed to outperform traditional numerical libraries like NumPy for specific summation series.
Technical Breakthroughs:
-
Mathematical Optimization (Time Complexity: O(1)): While NumPy calculates the sum of a sequence using O(N) iteration, KS-Engine utilizes mathematical induction (Arithmetic Progression algorithms) to resolve the result in constant time.
-
Hardware-Level Acceleration (Inline Assembly): The core is written in pure x86-64 assembly integrated within C. By utilizing direct register manipulation (
rax,rdi) and SSE/AVX instructions (mulsd,cvtsi2sd), it achieves the theoretical limit of the CPU's execution speed. -
Zero-Memory Mapping: Unlike NumPy arrays that require substantial RAM allocation (O(N) space), KS-Engine operates with a constant memory footprint (0.00MB additional RSS), bypassing the Python heap and preventing memory fragmentation.
-
Compiler-Specific Optimization: Compiled exclusively with GCC using
-O3 -ffast-math -march=native, ensuring that the binary is tailored specifically for the host CPU's microarchitecture.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 ks1beta-0.5.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: ks1beta-0.5.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 6.2 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c57aa72579a599f805bbb8c354e890e1b7cb97ef235da4e3ad7cc391b909ab
|
|
| MD5 |
c28b9dc821dbe62eb8acff5c36053c21
|
|
| BLAKE2b-256 |
acf40f80fb64baf7c3cb51b105558092bca8853c80d0fe9a32b2b732617bf98c
|