GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — perf: dir かもしれない event の L2 / L3 evict を batch あたり 1 走査にまとめる by ymnao · Pull Request #623 · ymnao/scripta Conversation
Owner
概要
最後の行は、どちらも 1 回だけ測った値です。差が誤差の範囲かどうかは確かめていません。 HANDOFF の「その他」にあった 177 の Tier3 第 1 項(非
そこで、create を対象から外すのではなく、走査そのものを 1 回にまとめる形で直しました。 関連 Issueなし(HANDOFF.md の「177 で Tier3 と判定して三択に載せなかった 3 件」の第 1 項) 移行 Stage
(該当なし。Stage 完了後の性能改善) 変更内容
動作確認
検証エビデンスリスク分類tier: medium — reasons なし(classify-risk.sh の出力が 実行した検証
レビュー指摘と対応
code-reviewer は 1 周目で次を独立に確かめました。
追跡先backlog delta: 起票 0 件 / 本 PR で close 0 件 / 現在 open 2 件 なし Draft 判定
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- applyFsBatch は非 `.md` (または isDir) の event ごとに L2 entries と L3 pathToId を全走査していた。cache 1 万件に非 `.md` の create を 1000 件流すと 1418ms、delete で 1125ms main を塞いでいた (vitest で 1 回計測) - batch 内の dir かもしれない path を Set に集め、L2 deletePrefixes / L3 invalidatePrefixes で 1 走査にした。同じ条件で create 5.3ms / delete 3.0ms - 範囲判定は atOrUnderMatcher (root-relative-path.ts) に置いた。旧 `exact || startsWith(prefix + sep)` と同じ範囲になる。prefix の長さごとに先頭を切り出して Set で引く形にしたのは、path の sep を indexOf で辿る形だと event 1 件のとき 10k 件で 16ms になり、旧実装 (2.3ms) より遅かったため - evict と bump はどれも可換で、tombstone clear も batch 内では tombstone 数が単調増加なので発火の有無が変わらない。file event の後にまとめても結果は event 順と同じ Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> … pin する - 一括化で prefix invalidate を file event の後ろに回したので、既存 test が避けていた「batch 内で閾値を跨ぐ」経路を 1 件踏む。invalidatePrefixes 末尾の clear 判定を外す mutant はこの test だけが kill する - applyFsBatch のコメントで、順序を変えても同じになるものを観測対象ごとに書き、成り立つ前提 (batch 内で indexFile / getOrCreateId が走らない) を明示した Co-Authored-By: Claude Opus 5.5 <[email protected]> - getOrCreateId は clear ではなく等値比較側の前提なので分けて書いた - 判別していない isSaturated の assertion を外し、閾値の算術コメントの形を揃えた Co-Authored-By: Claude Opus 5.5 <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
* chore: v0.8.0 リリース準備 - package.json の version を 0.7.0 → 0.8.0 に上げる - CHANGELOG.md に v0.8.0 のエントリを追加する (#283 〜 #631、170 commit) - Electron 44 で macOS の最小要件が 13 (Ventura) に上がることを冒頭に明記する (同梱 Electron 44.5.1 の LSMinimumSystemVersion が 13.0) - リリース後、tap 側で Cask の depends_on macos を :ventura に上げてから autobump を手動実行する (docs/parity-checklist.md §11) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG をコミットの実態に合わせて直す - hard link (#601) は検索結果の stale 対策で、ワークスペース外アクセスの封鎖では ないので Security から Fixed へ移す - 漏れていた #414 / #443 / #623 と CI actions の更新を足す - #461 の 3 経路 (別タブのファイルへの書き込み・rename 前パスの復活・ ウィンドウを閉じたときの保存漏れ) を分けて書く - #444 を wikilink がすべて未解決になる症状として、#622 を Fixed として書き直す - electron-builder の完全一致固定に出所 (#283) と理由を添える - [0.8.0] / [0.7.0] の参照リンク定義を足し、README の Electron 版を v44 に直す Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG の #623 / #443 の記述を実測条件と実際の UI に合わせる - #623 の「1 秒以上」に実測条件 (キャッシュ 1 万件・イベント 1000 件) を添え、 コミットに無い git checkout の例を外す - #443 の「すべて表示した」は実在しない UI 文言なので、打ち切りの通知が 出ないという実挙動で書く Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |