NCAS-CMS / NCAS-CMS/cf-python

Potentially slow iteration for setting condition value units

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

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

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):

https://github.com/NCAS-CMS/cf-python/blob/f17e08ee69b271c3b595131ef93d25f4bb3c2395/cf/query.py#L890-L896

with a suggested solution of:

For the Data object case we could just change the units without iterating through.

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

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

はじめの一歩

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

調査の方向性

cf/query.py の 890-896 行目と pull request 427 の関連する議論から始め、Data オブジェクトで表現された条件値がどのように処理されるかに注目してください。lama-to-dask ブランチでの動作を確認し、大きな Data オブジェクトに対する反復を避けながら、既存の単位設定の結果を維持してください。

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

評価

技術スタック
python
領域
data
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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