[PR #3511] [MERGED] Windows: link the overlay's mirrored files instead of copying them #5033

Closed
opened 2026-11-03 05:09:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3511
Author: @Domanffe
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/windows-overlay-hardlink-render


📝 Commits (1)

  • 3c7e4ba Windows: link the overlay's mirrored files instead of copying them

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/packs.rs (+5 -1)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

link copies every file the mirror hands the overlay, so a selection with a
pack on writes the prepared root out again: 639 MB and 28 181 files here, and a
cold overlay build of 34.4 s against 20.8 s when the same files are hardlinks.
Unix already links them and the overlay only reads them.

A different volume, or a filesystem without hardlinks, still copies.

The numbers come from the same patch in #3286, measured on main before the
client's packs module moved to horizon-client-render, where this branch
carries it. That branch conflicted only because of the move; this one replaces
it.

Co-Authored-By: Hermes Agent (Nous Research) noreply@nousresearch.com


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3511 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/windows-overlay-hardlink-render` --- ### 📝 Commits (1) - [`3c7e4ba`](https://github.com/horizon-rust/horizon/commit/3c7e4ba574cada380f6947d488e771cf06902bc4) Windows: link the overlay's mirrored files instead of copying them ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/packs.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `link` copies every file the mirror hands the overlay, so a selection with a pack on writes the prepared root out again: 639 MB and 28 181 files here, and a cold overlay build of 34.4 s against 20.8 s when the same files are hardlinks. Unix already links them and the overlay only reads them. A different volume, or a filesystem without hardlinks, still copies. The numbers come from the same patch in #3286, measured on `main` before the client's packs module moved to `horizon-client-render`, where this branch carries it. That branch conflicted only because of the move; this one replaces it. Co-Authored-By: Hermes Agent (Nous Research) <noreply@nousresearch.com> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:44 +07:00
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#5033
No description provided.