[PR #1273] [MERGED] Reuse End island scans for 10% faster complete generation #3473

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1273
Author: @rdbtCVS
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: perf/end-island-volumes


📝 Commits (1)

  • 4e04e97 Reuse eligible End island candidates across bounded density volumes

📊 Changes

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

View changed files

📝 crates/horizon-core/src/density/end_islands.rs (+139 -1)

📄 Description

End density columns repeatedly scan the same neighboring simplex positions. Reuse eligible islands within each bounded density volume while preserving the original coordinate divisions, floating arithmetic and traversal order. Wide or wrapping volumes keep scalar evaluation, and temporary storage stays local and bounded.

Complete outer-End generation improves 10.18% median across five alternating independent-process release pairs after a discarded warm pair (range 7.16–10.73%). Every sample generates 4,096 proto chunks and decorates 3,844, with seed 12345, center (128, 128), size 64 and one worker. Resources, benchmark source and thin-LTO/one-codegen-unit release flags match in every pair. Actual persistent-pool checks are recorded separately; they do not establish a stable six-worker loading gain.

Validation: the fresh pinned Minecraft 26.3 full-phase oracle passes 90 chunks over two seeds and central, outer-city, negative, void-boundary and far sites. All 56 internal metadata snapshot hashes match baseline/candidate at 1/12 workers across seven sites and three dimensions. Focused coordinate/buffer tests and scoped pr_ready pass (107 core tests, formatting, dependent clippy and public tree). Related dimension/cold/high-worker/flight checks show no material regressions; peak RSS changes +0.0094%.

Measured baseline: main 1ec2762f plus the preceding End surface and surface-biome-cache changes (#1264, #1268). This PR contains only the independent island-volume change; those other changes affect different paths.


🔄 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/1273 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/end-island-volumes` --- ### 📝 Commits (1) - [`4e04e97`](https://github.com/horizon-rust/horizon/commit/4e04e97565575b09c5e012cef61a5ac619bbe81b) Reuse eligible End island candidates across bounded density volumes ### 📊 Changes **1 file changed** (+139 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-core/src/density/end_islands.rs` (+139 -1) </details> ### 📄 Description End density columns repeatedly scan the same neighboring simplex positions. Reuse eligible islands within each bounded density volume while preserving the original coordinate divisions, floating arithmetic and traversal order. Wide or wrapping volumes keep scalar evaluation, and temporary storage stays local and bounded. Complete outer-End generation improves **10.18%** median across five alternating independent-process release pairs after a discarded warm pair (range 7.16–10.73%). Every sample generates 4,096 proto chunks and decorates 3,844, with seed 12345, center (128, 128), size 64 and one worker. Resources, benchmark source and thin-LTO/one-codegen-unit release flags match in every pair. Actual persistent-pool checks are recorded separately; they do not establish a stable six-worker loading gain. Validation: the fresh pinned Minecraft 26.3 full-phase oracle passes 90 chunks over two seeds and central, outer-city, negative, void-boundary and far sites. All 56 internal metadata snapshot hashes match baseline/candidate at 1/12 workers across seven sites and three dimensions. Focused coordinate/buffer tests and scoped pr_ready pass (107 core tests, formatting, dependent clippy and public tree). Related dimension/cold/high-worker/flight checks show no material regressions; peak RSS changes +0.0094%. Measured baseline: main `1ec2762f` plus the preceding End surface and surface-biome-cache changes (#1264, #1268). This PR contains only the independent island-volume change; those other changes affect different paths. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:46 +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#3473
No description provided.