Skip to main content

LQFT Engine: Custom Memory Arena & O(1) Cryptographic Fast-Path (v0.9.0 Stable)

Project description

Log-Quantum Fractal Tree (LQFT) 🚀

Python 3.12 C-Engine Memory Arena Hardware License

📌 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.0 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.0)

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


Download files

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

Source Distribution

lqft_python_engine-0.9.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distributions

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

lqft_python_engine-0.9.0-cp312-cp312-win_amd64.whl (15.6 kB view details)

Uploaded CPython 3.12Windows x86-64

lqft_python_engine-0.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.9.0-cp312-cp312-macosx_11_0_arm64.whl (13.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lqft_python_engine-0.9.0-cp312-cp312-macosx_10_9_x86_64.whl (12.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

lqft_python_engine-0.9.0-cp311-cp311-win_amd64.whl (15.6 kB view details)

Uploaded CPython 3.11Windows x86-64

lqft_python_engine-0.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.9.0-cp311-cp311-macosx_11_0_arm64.whl (13.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lqft_python_engine-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl (12.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lqft_python_engine-0.9.0-cp310-cp310-win_amd64.whl (15.6 kB view details)

Uploaded CPython 3.10Windows x86-64

lqft_python_engine-0.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.9.0-cp310-cp310-macosx_11_0_arm64.whl (13.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lqft_python_engine-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl (12.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file lqft_python_engine-0.9.0.tar.gz.

File metadata

  • Download URL: lqft_python_engine-0.9.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lqft_python_engine-0.9.0.tar.gz
Algorithm Hash digest
SHA256 2be218c2ec9c8a3a2e9e86e88e0c917ec3d561d4c8edcfdf7f87bfb6f7485cbc
MD5 c85786ef99584e4583af42bf48d1eea8
BLAKE2b-256 34d1ea01ce334a74a9dcfc73abb2ec7ddf2c46e6ce3b3d38b91f8f7f100b1d86

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3273f09fe6b743d5ea61f85c29bf907e0061b342285c5060ad86d54f015423de
MD5 038759c9878fac2aa8da500d51b73eaa
BLAKE2b-256 d7589e300b0f55b4e5331b648f37f214cdf3b9977dc8007ed0565385ba9b1854

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 46cd2420bc7829604a6966e480b57c05def7987daa6c13bede4168dff8644a79
MD5 4939e6d0c47770ab43d20179a4785f75
BLAKE2b-256 0a733f389f297dcc9b11e5531ec2c8a2c84f57bb4d93716e26fd89861899c4e3

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a8f14c91f92047be305a17f76b279b377820c00f11ce9e9676ff63d39b14103
MD5 07a75ba1968c29dffc0f0ea6dd507467
BLAKE2b-256 6a2a9c41a2a519b26a88c96d8da1c5a756313dc7736ee0a5a9b8e52474d516b1

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b0937dfb12d221aefb360bb39dc14b43e24298b7a2b2b48b89acb62c4abafcb7
MD5 a77d9a52bb9370f516c9bee6818b2bca
BLAKE2b-256 c898a81edac54e3030b5c5085c22d86b2445900e856eff59c988457bcc2010e6

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e32d1d612a633bf58dd5391a7c5f3a489caf95a2191c3a36618490321b565d1
MD5 9f130bcdf6c776c20e582b51594d8c4f
BLAKE2b-256 cd158be9126af13675db693b7fe89c4786bd750771804b0aed48fd487c18150f

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac9030d825474d172c2bbf85c517edab801da3497b9b3d7eddabcdca88297ec8
MD5 d39cd36e9544029257592308857f86e4
BLAKE2b-256 6cba708ccae21979a054995c2ed7b1aea210547fdbd79b115111fe57846cae90

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4180bd5c2a071f34bdf3fe17dd56c56e3b82430236befd1344be7fbcedb3c8d0
MD5 6422421862d8dd83b780d39a05b08370
BLAKE2b-256 346be8fc90043642ce855f86d1ff49965606ad895f76f695c41b2925cc26bbb5

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e62abbb4cbb7d305a5c3cec43f2844647cff4b8f46f511e41d2da8d45c70a100
MD5 8b23bc339ce8216b9ea6dd2d30a0d287
BLAKE2b-256 103e29f158317fe67c2e7884d84e6f0fe71d7c65957dc5948f28e8457e7c7818

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d865e7e1bb6c3f357369932228a7c27398f9730b20a3adc3483ab047828b190b
MD5 bf6a8bf4fe7870b58a2cfd2b21dda8ef
BLAKE2b-256 f5a9f9617a987a40e72192b54f9a4232dcd97c23855d937f11ac8b2da97b78a0

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d441ad9d299a35a4c854e1611e595841da9fbcdf07bbc8a3c433fb5d24635c9d
MD5 567e804810f0e6c3644ffc0d575872e0
BLAKE2b-256 7fc9bae7d9a323738eb868b77dd50d4189eb53228479344b9e1698efc4160d54

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ecaba605aba0f055604419a1be3f3153ae1427b0233f96b3d7f222b3898bd70
MD5 daeadfa572cd3e8601dd8fa7cbfe2873
BLAKE2b-256 93f1a0bb673945d06f015445d1fa080e195e20c6a569ec602e530d0fa3ed4223

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8bb7ab580f97127daadc72dcb4b0757a7b601060f96ea9d4ecb67c07e75aa8ff
MD5 865d07309310ad142f632182303f5871
BLAKE2b-256 d50dbc5fdabdb5dcea57b7b5fee5de2706b1185fae7ce00c81d853c9979f9870

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