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

Consider replacing attrs with msgspec

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

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

評価

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

調査の方向性

まず、CLI とデータセット処理のパスで使用されている attrs データクラスを見つけます。issue では特定のファイルやエントリーポイントは指定されていません。大規模なデータセットで CLI のインポートの応答性と合計実行時間を測定し、その後 attrs と msgspec.Struct を比較して、可読性の変化を正当化できるほどのパフォーマンス向上があるかを記録します。

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

説明

performance

As this project gets closer to usability, performance on large datasets is going to become relevant. I suspect that attrs is not a bottleneck, but we do instantiate a large number of attrs dataclasses. We should evaluate whether switching to msgspec.Struct offers nontrivial performance improvements.

I would say the main two relevant measures would be:

  1. CLI responsiveness. If importing is slow the CLI will feel sluggish, even if we're talking a one-time cost of a couple hundred ms.
  2. Total runtime on a large dataset. 5-10% speedup is probably worth it. <5% if the code becomes simpler to read.
主要言語
Python
スター
10
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

bids-standard/python-validator のほかの issue

bids-standard/python-validator の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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