Skip to main content

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ks1beta-0.5.0-cp313-cp313-win_amd64.whl (6.2 kB view details)

Uploaded CPython 3.13Windows x86-64

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

Hashes for ks1beta-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a8c57aa72579a599f805bbb8c354e890e1b7cb97ef235da4e3ad7cc391b909ab
MD5 c28b9dc821dbe62eb8acff5c36053c21
BLAKE2b-256 acf40f80fb64baf7c3cb51b105558092bca8853c80d0fe9a32b2b732617bf98c

See more details on using hashes here.

Supported by

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