CMD + K

heapx

Community

Ultra-optimized heap operations for Python, written in C.

Installation

To install this package, run one of the following:

Conda
$conda install mukherjee08::heapx

Usage Tracking

1.0.1
1.0.0
2 / 8 versions selected
Downloads (Last 6 months): 0

Description

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.

About

Summary

Ultra-optimized heap operations for Python, written in C.

Last Updated

Mar 17, 2026 at 07:50

License

MIT

Supported Platforms

macOS-arm64
linux-64
win-64
macOS-64