Skip to main content

LQFT Engine: 1.3M+ Ops/sec Merkle Forest & Hardware Spinlocks (v0.9.5 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.4 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


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.5.tar.gz (10.2 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.5-cp312-cp312-win_amd64.whl (17.4 kB view details)

Uploaded CPython 3.12Windows x86-64

lqft_python_engine-0.9.5-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.8 kB view details)

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

lqft_python_engine-0.9.5-cp312-cp312-macosx_11_0_arm64.whl (14.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lqft_python_engine-0.9.5-cp312-cp312-macosx_10_9_x86_64.whl (13.5 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

lqft_python_engine-0.9.5-cp311-cp311-win_amd64.whl (17.5 kB view details)

Uploaded CPython 3.11Windows x86-64

lqft_python_engine-0.9.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.2 kB view details)

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

lqft_python_engine-0.9.5-cp311-cp311-macosx_11_0_arm64.whl (14.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lqft_python_engine-0.9.5-cp311-cp311-macosx_10_9_x86_64.whl (13.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lqft_python_engine-0.9.5-cp310-cp310-win_amd64.whl (17.5 kB view details)

Uploaded CPython 3.10Windows x86-64

lqft_python_engine-0.9.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (37.9 kB view details)

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

lqft_python_engine-0.9.5-cp310-cp310-macosx_11_0_arm64.whl (14.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lqft_python_engine-0.9.5-cp310-cp310-macosx_10_9_x86_64.whl (13.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: lqft_python_engine-0.9.5.tar.gz
  • Upload date:
  • Size: 10.2 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.5.tar.gz
Algorithm Hash digest
SHA256 8b6260d86dd6882fc8de60e11016747106ced02be0f8a0fd5c7b0e4c7877ce2d
MD5 8c46f9bc5601a0fdf2de965bd6c49977
BLAKE2b-256 31a5f16a6c84ea899dcec067d783bc65190cc06f021bb023f658037cd8fed539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e485271a0cddf448acd60f8665a330881a9e9f5a92b7b4e9bd5b479f04d127f
MD5 54468a50b8f0297f31b5d3bc1c450e04
BLAKE2b-256 d11f6841fd27912bcc2245e5bcf7485712aef328c1ef9920a94f476312397dc8

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.5-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.5-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 410ae8e023039da219060217bb50a46f6bbfb130c0a7fff9715a025c6f90e97d
MD5 c211b9f37f2bfa8e3a9a2075613f4dde
BLAKE2b-256 5e73e29b1aaa3ece8d29cb7cd3c14689d26687ee6d17cd748ca3018ae0d54a06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43b9f831bddbf16420edde07204364ac4386bcd56def2109c7461e5d501a9f98
MD5 b45498dd82a7546a7ab4364df9ec08bb
BLAKE2b-256 8bced604c8ff109cc57d16062f28d79b4ee4c5bd2dfe413fb69f942520cc039d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 421820401ce9d9bddf1b315404717fb68b731a1cd668ab7dc096be658cda8e1a
MD5 2cd52174c1df8e5d19f0e4191d4d4fe6
BLAKE2b-256 00e61713aaa6eb6a499c243d41b137d9486c32344df3183474a9ddb2dc364467

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e1728ace2f10a5d679fb88372ea7a03cba7b81276390aacb60e366dad828d943
MD5 c697347163e34993717231cfc59df2dc
BLAKE2b-256 a039c614efc1151fd7f45b551740122733d7215717386faaa4f537be9c73b841

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.5-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.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a67bc4f96b25afd62fdd49f2497ab94742d4639e39d2a391f2eb72532424f37
MD5 c0c8afbc27f8588f5d2088886fd9db73
BLAKE2b-256 17a5313d837b2f7efeac51cc03d3bb0dab84de8bd57d97647c41c70a0d3af88d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2315b6d876b747b3ffb394939b02fe87289705784fd306506ce8a25f9ea9c03d
MD5 cad99bc801fd8a9725bfc5be171ea801
BLAKE2b-256 1a79f53e427093748f564ce10b713a4671ba61749f33cb5dec86ed5194640c59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 958fb2c54f11cde85ba357529fe095fe0a10a8c8f3ee98a760965d9d91deb92a
MD5 f8be6f4215a5872b5fd7c83810ca8d86
BLAKE2b-256 c7703e007a2504525dc95c54d9842cd0b3a81f975ae9fd6ec7ffff262d2e6ac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6785b4b8e35fccf7bb6e89b5de26df2af8aadd31f23c59df5283628d31b707a1
MD5 e7666fe4e80ac6441879002b2e037821
BLAKE2b-256 f4870b929e050a3b0425c62fc8da2749c6e6f888733b8ea78874fea7c848b488

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.9.5-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.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37987186108469a6b09cacc6b821b85cd9c5af63ac663b75febb5d0c9e6b2262
MD5 d9fee5f9d24ca290d34a7a11270b07c8
BLAKE2b-256 c684b25eaf10d97312bb860f004f34818733b19f7735010752a29d2e948a7499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5d1ff36c6cb0b07d3a31d0031d7df3e471257f0e759227bcb2246cb4e5d2358
MD5 68893f413375e53b225ff43e697a41a1
BLAKE2b-256 6894ff68ce86ad4c42de03ce14b4d7fff5878e39f9dd6bc9be0d125fc03f1d32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lqft_python_engine-0.9.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9e299ef13063b3fa5e0138964daba1c2faa4a998b904adc1846dc2a6a786fe1c
MD5 0ba20bc93435bb3238cdfb84af9401fe
BLAKE2b-256 aff495159226496deaeb3a856081c94d0d4da5ca6561a1f6343731d1323cb53d

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