[GH-ISSUE #4260] Pack overlay cache: Windows revalidates vanilla's files by reading every one #1250

Closed
opened 2026-11-02 15:45:25 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Teiwazik on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4260

Originally assigned to: @Teiwazik on GitHub.

🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally.

What

On Windows, checking whether a cached resource-pack overlay is still valid reads every file it depends on by its bytes, vanilla's prepared resources included (about 23,000 files). packs/cache.rs's stamp falls back to content there, because the portable metadata has no change timestamp.

Why it matters

Each of those opens is scanned by the antivirus, the same cost as in #1961: a resource reload with the overlay already built can spend a long time only revalidating vanilla's files, which Horizon never writes and which change only when the launcher prepares a new version.

Proposal

Stamp files under the vanilla root by their size and their write and creation times (as directories already are, and as Unix does with its change time), and keep reading the packs' own files. Bump the marker version so old markers are rebuilt once.

Originally created by @Teiwazik on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4260 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. ## What On Windows, checking whether a cached resource-pack overlay is still valid reads every file it depends on by its bytes, vanilla's prepared resources included (about 23,000 files). `packs/cache.rs`'s `stamp` falls back to `content` there, because the portable metadata has no change timestamp. ## Why it matters Each of those opens is scanned by the antivirus, the same cost as in #1961: a resource reload with the overlay already built can spend a long time only revalidating vanilla's files, which Horizon never writes and which change only when the launcher prepares a new version. ## Proposal Stamp files under the vanilla root by their size and their write and creation times (as directories already are, and as Unix does with its change time), and keep reading the packs' own files. Bump the marker version so old markers are rebuilt once.
Author
Owner

@Teiwazik commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6517753126 --> @Teiwazik commented on GitHub (Oct 30, 2026): /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1250
No description provided.