LQFT Engine: Vectorized Hashing, Zero-Copy Batching, & L1 Cache Locality (v0.9.2 Stable)
Project description
Log-Quantum Fractal Tree (LQFT) 🚀
📌 Project Overview
The Log-Quantum Fractal Tree (LQFT) is a high-performance, scale-invariant data structure engine designed for massive data deduplication and persistent state management. It synthesizes Hash Array Mapped Trie (HAMT) routing with Merkle-DAG structural folding to provide deterministic $O(1)$ search latency and sub-linear $O(\Sigma)$ space complexity.
By offloading core associative logic to a native C-Extension, the LQFT completely bypasses the Python Global Interpreter Lock (GIL), providing true hardware concurrency and significant memory reduction for versioned, redundant, or patterned datasets.
🧠 Core Architecture (v0.9.1 Multi-Language Core Prep)
1. Custom Memory Arena (Slab Allocator)
Standard C malloc() introduces significant OS metadata overhead (up to 16 bytes per allocation). In v0.9.0, the LQFT utilizes a Custom Slab Allocator. The engine requests memory in 16KB "Arena Chunks" and performs O(1) bump-allocation internally, crushing the memory footprint down to ~104 bytes per node.
2. Intrinsic Free-List & ARC
When a branch is overwritten, the engine natively reclaims memory using an intrinsic linked-list. "Dead" nodes repurpose their own internal pointers to form an infinite recycle bin, avoiding expensive calls to the Operating System's free() method.
3. O(1) Cryptographic Fast-Path
Branch hash recalculation during Deletion and Updates utilizes mathematical XOR inverses (Parent ^ (Old_Child * Prime) ^ (New_Child * Prime)). This eliminates the standard 32-way branch loop, providing sub-microsecond structural folding.
🚀 Silicon Performance Report (v0.9.2)
Environment: Python 3.12 | GCC -O3 | MinGW64 | 16-Core Parallel Architecture
| Metric | Result |
|---|---|
| Raw Memory Density | ~104.6 bytes per node (Eliminated 288-byte bloat) |
| Search Latency (p50) | ~500 ns (Deterministic 13-hop limit) |
| Raw Write Speed | 313,433 ops/sec (Zero-Copy Buffer Protocol) |
| Multi-Thread Scaling | Optimistic Concurrency (Read-Copy-Update) |
🛠️ Getting Started
Installation
# Clone the repository
git clone [https://github.com/ParjadM/Log-Quantum-Fractal-Tree-LQFT-.git](https://github.com/ParjadM/Log-Quantum-Fractal-Tree-LQFT-.git)
cd Log-Quantum-Fractal-Tree-LQFT-
# Build the native C-extension
python setup.py build_ext --inplace
High-Speed Usage (Zero-Copy)
import lqft_c_engine
import array
# Prepare raw 64-bit buffer
raw_buffer = array.array('Q', [0x1, 0x2, 0x3])
lqft_c_engine.insert_batch_raw(bytes(raw_buffer), "enterprise_payload")
# Sub-microsecond search
result = lqft_c_engine.search(0x1)
print(result) # "enterprise_payload"
# Safe memory arena reclamation
lqft_c_engine.free_all()
⚖️ License
MIT License - Parjad Minooei (2026).
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 Distribution
Built Distributions
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 lqft_python_engine-0.9.2.tar.gz.
File metadata
- Download URL: lqft_python_engine-0.9.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdcd0c63c5ecd6e9c2f2b3b6250cc7a07397f102824423854ce61c6e4fbc8026
|
|
| MD5 |
c40c4979ef84da7c42b3fa616e127ff2
|
|
| BLAKE2b-256 |
3aeb090721a6f5caf113495cbdc1c67ae6ab872edc95a33a8c663676d5c5b5a9
|
File details
Details for the file lqft_python_engine-0.9.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 16.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf0451ab1406a445b531c9fe75a637e55abafd54a122c0accba83221cf73a05
|
|
| MD5 |
89a76adc1de31dc750025cc4c33c761a
|
|
| BLAKE2b-256 |
46b266e414d0f2d71e57df158edf0b90c86bb897b38e44d49677bc598e2e7af0
|
File details
Details for the file lqft_python_engine-0.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 36.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fde6f27753222e5eb7e93c70a417239eaba23cf230b5008e3870b8da481d9ed
|
|
| MD5 |
7ac14b12fdc963f27a727e85688ed67e
|
|
| BLAKE2b-256 |
5c40167385c42d908ecd656846c15a357e7887e63a915ae0c049ad6a331d9b60
|
File details
Details for the file lqft_python_engine-0.9.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.6 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac01b2340977c85651619113b671300d3a3113b29ad8acf1c418ae8a948889ef
|
|
| MD5 |
e8930b8c10877533cf2411f2c156f8c1
|
|
| BLAKE2b-256 |
72e8703bef9374b7c8dda41ce89618559f37c51e270f19adcd98e2bad52c8850
|
File details
Details for the file lqft_python_engine-0.9.2-cp312-cp312-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 13.3 kB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0372d956ed9df0b47d3d8db78bcec13992c0e19b1b4158c3360c8db090373c73
|
|
| MD5 |
5ef2580efd54c415e963587f719159c6
|
|
| BLAKE2b-256 |
f90eb4fa8d8fa76c915069203c35cef6d2aa73e71bd6cd30b51a98dc090a3525
|
File details
Details for the file lqft_python_engine-0.9.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 16.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcff8d49bcf06b790f90e9396527beda749a273b3ad35365a340fe2bb359a1bf
|
|
| MD5 |
8ca870a5646b0cda4d5334eb3dae1c73
|
|
| BLAKE2b-256 |
4b1e124467851b1b5dec1dedc9dcf386af8e0cf8c5f2c193fe5a4c1f3d680914
|
File details
Details for the file lqft_python_engine-0.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 37.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7618428b54580f284a512189255af3f116c5a6eacec650727817dc461a21e9f
|
|
| MD5 |
8b0eb3f8a31520633e082ec8143434f6
|
|
| BLAKE2b-256 |
46e3640c48a740485fd296214ceccd2c224a6feb1829009a1ed23427f7720ef7
|
File details
Details for the file lqft_python_engine-0.9.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1cfbef258704b20bfae920f22dae03fa22277953edf24dd8a3a4f90b06e5e4c
|
|
| MD5 |
5278ee693650fe74d4e288340fe1f19e
|
|
| BLAKE2b-256 |
2a2223d2784bafffa4b30146e4fcaf60b522e8455286c9808962cd8be14582f4
|
File details
Details for the file lqft_python_engine-0.9.2-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 13.3 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
143b9df6600b5e23489a62ee03b8db87bbb9bd910db5abbb1f87395012ecc3c4
|
|
| MD5 |
da7704015495069941d1b85d985e54c9
|
|
| BLAKE2b-256 |
8781b4dd0f1cfa20edc9c579d9fad355ec4c5d1fc4a6ac76d8442c8e80d487d9
|
File details
Details for the file lqft_python_engine-0.9.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 16.2 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b7d3872c8fd54b15aa713713c8f487fea6d9e92fbe29108193972e75afa0a1
|
|
| MD5 |
9a7073b5d04b24d5d071068cd63ba213
|
|
| BLAKE2b-256 |
59d30795c4b342a477c417abc9123ada8c0ef891d4b8a0b2e7ce5d6b588af60a
|
File details
Details for the file lqft_python_engine-0.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 36.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed67c5bd8808c50c18fd9fdea9b1d5748f59ec201d304a00007751cf55e2416
|
|
| MD5 |
9e7e4ce61ed6e332a7307443eef536fb
|
|
| BLAKE2b-256 |
05eca38ca4488579ecdb999b03eea0e0507d32c1bf60d800d07066aea0b20abb
|
File details
Details for the file lqft_python_engine-0.9.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a56bddd849ad64993fa57e0377e884b66f1ca9f13b55acf43cb65082fc7108d5
|
|
| MD5 |
fe542b5ada5865eb88c2255c135ce157
|
|
| BLAKE2b-256 |
5a5fc8340c35a2b8b2ad7ca15592e8860a2670120cb14cf81a394c8f78b3cd9e
|
File details
Details for the file lqft_python_engine-0.9.2-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.9.2-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 13.3 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edd5aa3fa12c0a006fd9c4ed62cebf9f44c73a0269e7718edee141df4984c039
|
|
| MD5 |
db4b5547900e14f1b87856e9096054cb
|
|
| BLAKE2b-256 |
dbb71c8d8cc7c76379e38c96d1b53580f76b62fdc21331b6971fa5b8372af9f8
|