Vectorize update()
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- api, performance
調査の方向性
まず、既存の update() エントリポイントと、各スケッチの pybind11 および nanobind のラッパー定義を確認します。プリミティブ入力とアイテムコンテナをどのように区別するかを判断し、ベクトル化にオーバーロードを使用するのか、それとも別のメソッド名を使用するのかを決定します。すべてのスケッチが一貫性のある透明な Python API で C++ 側の反復処理をサポートすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Looping in python is slow. We should enable update() with multiple inputs where C++ handles the iteration, for all sketches.
For sketches that take primitive types this is simple and can be done by overloading update(). For item containers it may be less straightforward since a list is a type of object, meaning an overloaded may treat the list as a single thing to ingest.
IIRC, the wrappers (both pybind11 and nanobind) iterate through the possible methods in the order ini which they were declared in the wrapper definition, which is not good for API design: Lack of transparency, internal rearranging of code can cause side-effects, etc. So we probably need a different method name. Then we run into the question of whether we should use an overload where practical and a different name where necessary or if we go for more consistency.
- 主要言語
- Jupyter Notebook
- スター
- 46
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/datasketches-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
apache/datasketches-python#65 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
apache/datasketches-python#63 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
apache/datasketches-python#46 · コメント 2 件 ·
apache/datasketches-python の issue をすべて見る
似ている issue
-
Area: Excel support
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
orbeon/orbeon-forms#7893 ·
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/python-sdk#3566 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
griptape-ai/griptape#2353 ·