Tracking Issue: Make smol optional in vortex-io
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system
調査の方向性
Start from vortex-io/Cargo.toml to see where smol and async-executor are declared, then read vortex-io/src/runtime/platform/native.rs (where block_on is smol::block_on) and locate CurrentThreadRuntime and CurrentThreadWorkerPool alongside the Executor trait and Handle. This is a tracking issue spanning several steps and crates, so the first milestone is the crate split itself and the hosts (DuckDB, CLI, Python and Java bindings) that must depend on it; done means vortex-io builds without smol or async-executor on native targets and no read-path code calls block_on.
索引モデルが issue の本文から書いたものです。
説明
This is a tracking issue for making smol an optional dependency of vortex-io, so that a host that installs its own Executor does not link it. Part of #9062.
Motivation
On native targets default_handle() returns None: there is no ambient runtime, and every caller installs a Handle. A host with its own executor (Tokio, or a fiber runtime such as ClickHouse's Silk) therefore never runs smol, yet vortex-io/Cargo.toml makes smol and async-executor required dependencies on every non-wasm target, because CurrentThreadRuntime and the worker pool live in vortex-io itself.
platform::block_on (vortex-io/src/runtime/platform/native.rs) is also smol::block_on, which parks the OS thread. Nothing on the scan read path calls it today. Read-path code must keep never calling it: on a fiber host it would block a whole CPU.
Design
Move CurrentThreadRuntime, CurrentThreadWorkerPool and the smol Executor into their own crate, and give it to the hosts that use them (DuckDB, the CLI, the Python and Java bindings). vortex-io keeps the Executor trait, Handle and a dependency-free block_on for tests and synchronous helpers.
Steps
- Move the smol-backed runtime out of
vortex-iointo its own crate - Hosts that use it depend on the new crate
-
vortex-iobuilds withoutsmolorasync-executoron native targets
Implementation history
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 239
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 684
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vortex-data/vortex のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vortex-data/vortex#12633 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vortex-data/vortex#12628 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
vortex-data/vortex#12491 ·
メンテナーはふだん 1 日以内に返信
-
Fallible constructor for nested_case_when対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vortex-data/vortex#11425 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
vortex-data/vortex#12635 ·
メンテナーはふだん 1 日以内に返信
vortex-data/vortex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
marklauter/tsong#110 ·
-
docs enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wasm-bindgen/wasm-bindgen#5503 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
area: engine bug needs milestone
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Mudcrab-Team/mudcrab#1197 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信