Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`calculate_summary_stats` takes significant time with lots of untested mutants

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

メンテナーはふだん 3 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

まず status_printer、print_stats、calculate_summary_stats を追跡し、その後 mutmut run と tests_dir のサブセットを使って報告された比較を再現します。完了とは、要約統計に関する処理が報告された遅延を引き起こさなくなり、ステータス出力が正しいままであることを意味します。この issue では、実行する具体的なファイルやテストは指定されていません。

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

説明

enhancement

I've ran mutmut run once with the normal print_stats method and once with calculate_summary_stats(...) commented out. In my case (with ~2000 of untested mutants) this changed it from ~80s to ~70s total runtime.

I think usually this won't be noticeable, however when running only a subset of the tests (eg with tests_dir), it is normal to have many untested mutants. For this use case, this is a significant slowdown.

The status_printer method already has a check to print only every 0.1s. Maybe we could make it a class that exposes a would_print() -> bool method and then we only calculate the summary stats every 0.1s. Or we could pass it the summary stats creating function as argument, and the status_printer calls the method every 0.1s.

Maybe we could also make calculate_summary_stats more efficient, I didn't look into that.

主要言語
Python
スター
1.5k
フォーク
182
平均マージ
2日 14時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

boxed/mutmut のほかの issue

boxed/mutmut の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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