Import time of the library is high
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python, pytorch, tensorflow
- 領域
- performance
調査の方向性
提供された perf_counter モジュールから始め、Feast のみ、TensorFlow、PyTorch をそれぞれインストールした新しい環境でタイミングを再現します。報告された警告を含め、import feast によって発生する処理を追跡し、どの import が遅延の原因になっているかを明らかにします。不要な import コストと警告の挙動に対処しつつ、ライブラリの import を壊さないことが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
The import time of the library seems to be very high.
Steps to reproduce:
Import times with only feast installed
Create a fresh virtual environment and install feast.
Run the following python module.
from time import perf_counter
now=perf_counter()
import feast
print(perf_counter()-now)
Result: The printed run time in my case was 2.710442792000322. Already pretty high for an import of a library.
Additionally I get a warning,
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Import times after adding TF
Install tensorflow lib.
Run the script again.
Result: Took ~3.1 seconds. Warning no longer being printed.
Import times after adding PyTorch
Install pytorch (torch).
Ran the script again.
Result: The run time went up to ~15 seconds.
Additionally, new warning is now being printed.
2025-07-23 13:36:02.068516: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1753270562.131461 66853 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1753270562.152065 66853 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1753270562.278959 66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278987 66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278991 66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278995 66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2025-07-23 13:36:02.293151: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
- 主要言語
- Jupyter Notebook
- スター
- 105
- フォーク
- 58
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
feast-dev/feast-workshop のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
feast-dev/feast-workshop#18 · コメント 3 件 ·
feast-dev/feast-workshop の issue をすべて見る
似ている issue
-
bot-triaged module: inductor module: performance oncall: pt2 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
tetsuji16/microProject#1893 ·
メンテナーはふだん 1 日以内に返信
-
A JSON chat answer blocks the backend event loop for the whole RAG run対応中かも @NopeCharon が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
The-OpenROAD-Project/ORAssistant#656 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
domattioli/agents-inc#257 ·
メンテナーはふだん 1 日以内に返信
-
Trial runs the agent's `populate_context_post_run` on the event loop, so trials that end together stall the orchestrator for seconds対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
harbor-framework/harbor#4652 ·
メンテナーはふだん 1 日以内に返信