per page, with , order by , clip by
Results of 1 - 10 of about 58 for heap (0.007 sec.)
heapq --- ヒープキューアルゴリズム — Python 3.14.8 ドキュメント 13451
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » heapq --- ヒープキューアルゴリズム テーマ 自動 ライト ダーク | heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/heap ... y このモジュールではヒープキューアルゴリズムの一実装を提供しています。優先度キューアルゴリズムとしても知られています。 Min-heaps are binary trees for which every parent node has a value less than or equal to any of its children. We refer to this cond ... ition as the heap invariant. For min-heaps, this implementation uses lists for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for a ... ll k for which the compared elements exist. Elements are counted from zero. The interesting property of a min-heap is that its smallest element is always the root, heap[0] . Max-heaps satisfy the reverse invariant: every parent node has ...
https://man.mtool.work/python/3.14/library/heapq.html
heapq --- ヒープキューアルゴリズム — Python 3.14.8 ドキュメント 13451
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » heapq --- ヒープキューアルゴリズム テーマ 自動 ライト ダーク | heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/heap ... y このモジュールではヒープキューアルゴリズムの一実装を提供しています。優先度キューアルゴリズムとしても知られています。 Min-heaps are binary trees for which every parent node has a value less than or equal to any of its children. We refer to this cond ... ition as the heap invariant. For min-heaps, this implementation uses lists for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for a ... ll k for which the compared elements exist. Elements are counted from zero. The interesting property of a min-heap is that its smallest element is always the root, heap[0] . Max-heaps satisfy the reverse invariant: every parent node has ...
https://man.mtool.work/python/3.14/library/heapq.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11255
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... state where possible. This transition involves allocating space for that state, potentially switching from static types to heap types, and—perhaps most importantly—accessing per-module state from code. Who should read this ¶ This guide is written for ... f them) would be most useful when embedding Python within a library. Libraries generally shouldn't make assumptions about the application that uses them, which include assuming a process-wide "main Python interpreter". Historically, Python extension ... ule state, i.e. PyModuleDef.m_size was zero. In your own module, you're in control of m_size , so this is easy to prevent. Heap Types ¶ Traditionally, types defined in C code are static ; that is, static PyTypeObject structures defined directly in co ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11197
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... state where possible. This transition involves allocating space for that state, potentially switching from static types to heap types, and—perhaps most importantly—accessing per-module state from code. Who should read this ¶ This guide is written for ... f them) would be most useful when embedding Python within a library. Libraries generally shouldn't make assumptions about the application that uses them, which include assuming a process-wide "main Python interpreter". Historically, Python extension ... ule state, i.e. PyModuleDef.m_size was zero. In your own module, you're in control of m_size , so this is easy to prevent. Heap Types ¶ Traditionally, types defined in C code are static ; that is, static PyTypeObject structures defined directly in co ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
オブジェクト実装サポート (object implementation support) — Python 3.14.8 ドキュ... 8226
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) テーマ 自動 ライト ダーク | オブジェクト実装サポート (object implementat ... この章では、新しいオブジェクトの型を定義する際に使われる関数、型、およびマクロについて説明します。 Allocating objects on the heap Soft-deprecated aliases Object Life Cycle Life Events Cyclic Isolate Destruction 関数 共通のオブジェクト構造体 (common obj ... ots スロットの定義型 (typedef) PyTypeObject 定義 PyObject スロット PyVarObject スロット PyTypeObject スロット Static Types Heap Types 数値オブジェクト構造体 マップオブジェクト構造体 シーケンスオブジェクト構造体 バッファオブジェクト構造体 (buffer obje ... ート structure Member Type PyTypeObject Types Garbage Collector State 実装 implementation support マクロ Allocating objects heap Soft deprecated aliases Life Cycle Life Events 前のトピックへ メモリ管理 次のトピックへ Allocating objects on the heap Thi ...
https://man.mtool.work/python/3.14/c-api/objimpl.html
Type Object Structures — Python 3.14.8 ドキュメント 7830
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... classing stuff */ PyMethodDef * tp_methods ; PyMemberDef * tp_members ; PyGetSetDef * tp_getset ; // Strong reference on a heap type, borrowed reference on a static type PyTypeObject * tp_base ; PyObject * tp_dict ; descrgetfunc tp_descr_get ; descrs ... that the object is always cleared before destruction. Beware that tp_clear might have already been called. If the type is heap allocated ( Py_TPFLAGS_HEAPTYPE ), the deallocator should release the owned reference to its type object (via Py_DECREF() ... tp -> tp_free ( self ); self = NULL ; // In case PyErr_WriteUnraisable() is called below. if ( tp -> tp_flags & Py_TPFLAGS_HEAPTYPE ) { Py_CLEAR ( tp ); } done : // Optional, if something was called that might have raised an // exception. if ( PyErr_ ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Type Object Structures — Python 3.14.8 ドキュメント 7830
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... classing stuff */ PyMethodDef * tp_methods ; PyMemberDef * tp_members ; PyGetSetDef * tp_getset ; // Strong reference on a heap type, borrowed reference on a static type PyTypeObject * tp_base ; PyObject * tp_dict ; descrgetfunc tp_descr_get ; descrs ... that the object is always cleared before destruction. Beware that tp_clear might have already been called. If the type is heap allocated ( Py_TPFLAGS_HEAPTYPE ), the deallocator should release the owned reference to its type object (via Py_DECREF() ... tp -> tp_free ( self ); self = NULL ; // In case PyErr_WriteUnraisable() is called below. if ( tp -> tp_flags & Py_TPFLAGS_HEAPTYPE ) { Py_CLEAR ( tp ); } done : // Optional, if something was called that might have raised an // exception. if ( PyErr_ ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
オブジェクト実装サポート (object implementation support) — Python 3.14.8 ドキュ... 7786
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) テーマ 自動 ライト ダーク | オブジェクト実装サポート (object implementat ... この章では、新しいオブジェクトの型を定義する際に使われる関数、型、およびマクロについて説明します。 Allocating objects on the heap Soft-deprecated aliases Object Life Cycle Life Events Cyclic Isolate Destruction 関数 共通のオブジェクト構造体 (common obj ... ots スロットの定義型 (typedef) PyTypeObject 定義 PyObject スロット PyVarObject スロット PyTypeObject スロット Static Types Heap Types 数値オブジェクト構造体 マップオブジェクト構造体 シーケンスオブジェクト構造体 バッファオブジェクト構造体 (buffer obje ... tor State 実装 implementation support マクロ Allocating 前のトピックへ メモリ管理 次のトピックへ Allocating objects on the heap This page Report a bug Improve this page Show source Show translation source « ナビゲーション 索引 モジュール | 次へ | 前へ ...
https://man.mtool.work/python/3.14/c-api/objimpl.html
Allocating objects on the heap — Python 3.14.8 ドキュメント 7640
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating ... objects on the heap ¶ PyObject * _PyObject_New ( PyTypeObject * type ) ¶ 戻り値: 新しい参照。 PyVarObject * _PyObject_NewVar ( PyTypeObject * ... emory PyTypeObject initialized alloc New 戻り値 slot call 注釈 macro PyVarObject Py Init op 目次 Allocating objects on the heap Soft-deprecated aliases 前のトピックへ オブジェクト実装サポート (object implementation support) 次のトピックへ Object Life ... ion » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | © Copyright 2001 Python Software Foundation. このページはPython Software Foundation License Ve ...
https://man.mtool.work/python/3.14/c-api/allocation.html
Python support for free threading — Python 3.14.8 ドキュメント 7640
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for free threading テーマ 自動 ライト ダーク | Python support for free threading ¶ Starting with the 3.13 release, CPython has supp ... pects as well but can have some more overhead. In the free-threaded build, mimalloc manages memory in a number of separate heaps (currently four). For example, all GC supporting objects are allocated from their own heap. Using separate heaps means th ... at free memory in one heap cannot be used for an allocation that uses another heap. Also, some heaps are configured to use QSBR (quiescent-state base ... d reclamation) when freeing the memory that backs up the heap (known as "pages" in mimalloc terminology). The use of QSBR creates a delay between all memory blocks for a page being fre ...
https://man.mtool.work/python/3.14/howto/free-threading-python.html
PREV 1 2 3 4 5 6 NEXT