Potentially slow iteration for setting condition value units
オープン
まだ誰も着手していません。
dask
performance
- 主要言語
- Python
- スター
- 150
- フォーク
- 23
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 2
説明
As noted by @davidhassell in the review thread https://github.com/NCAS-CMS/cf-python/pull/427#discussion_r1040910208, the crux being:
if a large set is stored as a Data object, as opposed to a python built-in like a list, then iterating through it could be slow
relating to the code (currently on the lama-to-dask branch only):
with a suggested solution of:
For the Data object case we could just change the units without iterating through.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
cf/query.py の 890-896 行目と pull request 427 の関連する議論から始め、Data オブジェクトで表現された条件値がどのように処理されるかに注目してください。lama-to-dask ブランチでの動作を確認し、大きな Data オブジェクトに対する反復を避けながら、既存の単位設定の結果を維持してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100