perf: investigate redundant caption lookup passes during rendering
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Start with find_active_caption_segment in crates/rendering/src/layers/captions.rs and its caller CaptionsLayer::prepare, to see how the active-segment search and the exit-animation fallback scan are sequenced. Build a benchmark on synthetic caption lists covering active frames, gaps and exit animations, plus equivalence tests for timing boundaries, overlaps and unsorted input. Done means the selections match exactly and the benchmark shows a gain, or the change is rejected with the numbers recorded.
索引モデルが issue の本文から書いたものです。
説明
At 3d19c5cfa5e636107e78adde6d55be78404d4f23, find_active_caption_segment in crates/rendering/src/layers/captions.rs searches for an active segment, then scans again for an exit animation when none is active. CaptionsLayer::prepare uses this lookup per frame.
A candidate optimization is to retain the first animation candidate while searching for an active segment. It must preserve active-over-animation priority and original segment order, including overlaps and unsorted input.
Validation needed:
- Exact before/after selection equivalence, including timing boundaries.
- Release benchmarks on synthetic caption lists, separating active frames, gaps and exit animations.
- Reject the change if extra work on active frames outweighs the fallback savings.
This is a code-level performance hypothesis; no speedup or end-to-end playback/export improvement has been measured yet.
- 主要言語
- Rust
- スター
- 23.2k
- フォーク
- 2k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 130
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CapSoftware/Cap のほかの issue
-
Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcut対応中かも @AatmanAJ が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
CapSoftware/Cap#2596 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CapSoftware/Cap#2384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Dashboard pagination causes full page reloads on self-hosted Cap対応中かも @Dewin が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CapSoftware/Cap#2305 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CapSoftware/Cap#1714 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Linux: forced WEBKIT_DISABLE_DMABUF_RENDERER=1 makes the main window transparent on WebKitGTK 2.54 (only repainted regions show)対応中かも @AatmanAJ が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
CapSoftware/Cap#2624 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
CapSoftware/Cap の issue をすべて見る
似ている issue
-
area: compat area: parsing bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
reubeno/brush#1526 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
OFN writer emits `DocIRI` as a bare IRI, which becomes a version IRI or a parse error on re-readオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
phillord/horned-owl#338 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
stackabletech/operator-rs#1301 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jmcnamara/rust_xlsxwriter#205 · コメント 4 件 ·