heapx
Ultra-optimized heap operations for Python, written in C.
Ultra-optimized heap operations for Python, written in C.
To install this package, run one of the following:
heapx is a single-file C extension for Python that implements heap operations with explicit, performance-driven design choices at every level of the implementation. The module provides six public API functions — heapify, push, pop, remove, replace, and merge — each backed by a multi-tier dispatch system that selects the optimal algorithm at runtime based on data structure type, heap size, arity, key function presence, element type homogeneity, and GIL-release eligibility.
Summary
Ultra-optimized heap operations for Python, written in C.
Last Updated
Mar 17, 2026 at 07:50
License
MIT
Supported Platforms
GitHub Repository
https://github.com/mukherjee08/heapxDocumentation
https://mukherjee08.github.io/heapx/readme.html