Avoid excessive stack usage in all cases.

オープン
#94,445 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
compilers

調査の方向性

ソースファイルもテストも指定されていません。まず PR gh-99237 と gh-99262 を確認し、次に issue で説明されている Python 3.11 のコードオブジェクトとフレームスタックのチェックを追跡してください。完了条件は、コードオブジェクトごとのスロット数に上限が保証され、結果として得られる境界と再帰チェックの動作が検証されることです。

索引モデルが issue の本文から書いたものです。

説明

3.12 interpreter-core performance

In 3.11 we asserted that we didn't use too much stack, but that failed https://github.com/python/cpython/issues/94329

If we can guarantee that no code object uses more than a certain number of slots, N, where N should be in the order of a 100, we can potentially simplify and speed up bounds and recursion checking by combining them.

It also means we can use fixed size chunks for the frame stack, as we know that no frame can be larger than a chunk.

  • PR: gh-99237
  • PR: gh-99262
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。