linecache should remember files it failed to read and not try again
オープン
まだ誰も着手していません。
3.12
performance
stdlib
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
When linecache doesn't find a source file or fails to read it due to OSError, SyntaxError or UnicodeDecodeError, it returns an empty result. In subsequent attempts it would try to find and read the file again.
We should instead cache the negative lookup result and bypass the search in future queries.
Linked PRs
- gh-121224
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue に記載されている linecache のエントリポイントから始め、存在しないファイルや読み取り不能なファイルがどのように処理されるかを確認してください。失敗した検索が記憶され、その後のクエリでは検索を省略して同じ空の結果を返すことを確認してください。すでに進行中の作業について、リンク先の PR gh-121224 を確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100