[PR #3036] [CLOSED] Assemble chunk batch bodies on helper threads #4762

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3036
Author: @hectoreccles
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: perf/parallel-chunk-bodies


📝 Commits (1)

  • 38d482f Assemble chunk batch bodies on helper threads

📊 Changes

2 files changed (+43 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/lan/chunks.rs (+42 -0)
📝 crates/horizon-client/src/lan/hub.rs (+1 -4)

📄 Description

🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself.

A new chunk's body copies its sections, heightmaps and light layers into one packet buffer. With several columns in a batch those copies ran one after another on the tick thread. Share them out to scoped threads, one group each, while the tick thread takes the last group; the bodies stay in the order the batches take them.

The helper-thread path is only used for four or more columns, so a single player's small batch stays on the tick thread. The existing warmed_columns_give_the_same_bodies test now also checks the parallel path against the sequential one.

🤖 Generated with OpenCode


🔄 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/3036 **Author:** [@hectoreccles](https://github.com/hectoreccles) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/parallel-chunk-bodies` --- ### 📝 Commits (1) - [`38d482f`](https://github.com/horizon-rust/horizon/commit/38d482fcc6c443220609d3e2216e4e2d77725413) Assemble chunk batch bodies on helper threads ### 📊 Changes **2 files changed** (+43 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/chunks.rs` (+42 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+1 -4) </details> ### 📄 Description > 🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself. A new chunk's body copies its sections, heightmaps and light layers into one packet buffer. With several columns in a batch those copies ran one after another on the tick thread. Share them out to scoped threads, one group each, while the tick thread takes the last group; the bodies stay in the order the batches take them. The helper-thread path is only used for four or more columns, so a single player's small batch stays on the tick thread. The existing `warmed_columns_give_the_same_bodies` test now also checks the parallel path against the sequential one. 🤖 Generated with [OpenCode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07: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#4762
No description provided.