Free-threading runtime probes for pelt (epic E6).
Centralizes thePy_GIL_DISABLED / sys._is_gil_enabled()checks so tests,
CI gates, and the row-decode hot path share one definition of "GIL actually off".
data.drivers._pelt._runtime
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
is_free_threading_build
function
def is_free_threading_build() -> bool
True when the interpreter was built withPy_GIL_DISABLEDsupport.
No parameters.
is_free_threading_enabled
function
def is_free_threading_enabled() -> bool
True on a free-threaded build with the GIL actually disabled at runtime.
No parameters.
should_parallelize
function
def should_parallelize(*, n_rows: int, n_cols: int) -> bool
Whether row decode should fan out across worker threads.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
n_rows
|
int
|
— | |
n_cols
|
int
|
— |
View source · /home/runner/work/chirp/chirp/site/../src/chirp/data/drivers/_pelt/_runtime.py:1