List and VarBin constructors decode compressed offsets twice
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- performance
調査の方向性
Start with ListData::validate and VarBinData::validate_utf8, where the offsets are decoded during construction and the decoded copy is dropped. Then read list_view_from_list in listview/conversion.rs and the canonical path in varbin/vtable/canonical.rs, which decode the offsets again. Done when a compressed-offset List or VarBin array decodes its offsets at most once between construction and canonicalization, and the existing tests still pass.
索引モデルが issue の本文から書いたものです。
説明
Follow-up to #11222.
ListArray and VarBinArray, both Utf8 and Binary, decode their offsets to a PrimitiveArray when they are built, to check that the offsets are valid. They keep the original offsets and drop the decoded copy. When the array is canonicalized later, the offsets are decoded again: by list_view_from_list in listview/conversion.rs for List, and in varbin/vtable/canonical.rs for VarBin. So a List or VarBin array whose offsets are compressed, for example one read from a file, decodes its offsets twice.
Utf8 VarBin already did this before #11222: VarBinData::validate_utf8 decodes the offsets to check UTF-8 boundaries (see its TODO(joe)). #11222 adds the same pattern for List and Binary VarBin, with its own TODO in ListData::validate.
I have not measured the cost. It is one extra decode of len + 1 integers per array.
Expected: for List, Utf8 VarBin and Binary VarBin, the offsets are decoded at most once between construction and canonicalization.
🤖 Generated with Claude Code
- 主要言語
- 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 日以内に返信