--- id: omnimalloc version: "1.0.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # omnimalloc — Your one-stop shop for static memory allocation. License: permissive · Maintenance: active · Downloads: 91.3K/mo ## What it is and what it does OmniMalloc is a Python library that solves the static memory allocation problem: given a set of buffers with known sizes and lifetimes, it computes optimal offsets so that peak memory usage is minimized. This is a core step in ML compilers, embedded runtimes, and accelerator toolchains. The library wraps a C++ backend and exposes multiple allocation algorithms—including SuperMalloc, a new allocator claimed to outperform open-source alternatives—behind a single Python API. You define allocations with size and lifetime intervals (half-open ranges where lifetimes that touch never conflict), then call allocate() with your choice of allocator strategy. The library returns a plan with assigned offsets for each buffer. It also ships benchmark harness and visualization tools to evaluate allocation strategies on real workloads. Use it for: - Optimize memory layout for ML model inference on embedded or accelerator devices with fixed memory budgets. - Plan static buffer allocation for neural network compilation pipelines to reduce peak memory footprint. - Benchmark and compare different allocation strategies on real workloads using the built-in harness. - Develop and prototype new allocation algorithms using the library's framework and visualization tools. - Pack multiple buffers with non-overlapping lifetimes into shared memory pools for resource-constrained environments. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. OmniMalloc solves static memory allocation for neural networks by assigning buffer offsets to minimize peak memory usage, with an efficient C++ backend and multiple allocation algorithms including SuperMalloc. Yes, if you are building ML compilers, embedded runtimes, or accelerator toolchains that need to optimize static memory allocation. The library is actively maintained, has no known vulnerabilities, supports current Python versions (3.10–3.14), and offers both a practical allocator (SuperMalloc) and a framework for developing new strategies. Install friction is moderate due to compiled wheels, but pre-built binaries are available for common platforms. Not relevant for general Python development. ## Install pip install omnimalloc uv add omnimalloc poetry add omnimalloc ## Installing omnimalloc Before you install: Medium install friction due to compiled wheels for multiple Python versions (3.10–3.14) and platforms, but wheels are pre-built for common architectures. Active maintenance with a release 2 days old and last commit on 2026-08-13. License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions; attribution required. Quickstart: pip install omnimalloc import omnimalloc as om pool = om.Pool( id="pool", allocations=( om.Allocation(id=0, size=64, start=0, end=10), om.Allocation(id=1, size=64, start=12, end=20), om.Allocation(id=2, size=32, start=5, end=15), ), ) pool = om.allocate(pool, allocator="supermalloc", validate=True) print(pool.size) Requires Python 3.10 or later; compiled wheels available for macOS (ARM64), Linux (x86_64, aarch64), and Windows (amd64). Verify before relying: - Whether SuperMalloc's performance advantage holds across all workload types or only specific ML compiler scenarios. - API stability and backward compatibility guarantees for future releases beyond 1.0.0. - Detailed memory overhead of the allocator itself relative to peak savings achieved. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 91.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags static memory allocation neural networks, buffer offset optimization, peak memory minimization, ml compiler memory planning, allocator algorithms, memory layout optimization, memory-optimization, ml-compiler, static-allocation [View on SkillFed](https://skillfed.io/packages/omnimalloc) · [View on PyPI](https://pypi.org/project/omnimalloc/)