[PR #6722] [MERGED] Chunk encoding warm-up: run on the shared worker pool #7053

Closed
opened 2026-11-03 06:32:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6722
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: perf-jobs/encode


📝 Commits (1)

  • 2ae7b30 Chunk encoding warm-up: run on the shared worker pool

📊 Changes

1 file changed (+40 additions, -46 deletions)

View changed files

📝 crates/horizon-client/src/lan/chunks.rs (+40 -46)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #6719 (the shared pool), independent of #6721. The server tick's chunk-encode warm-up started N-1 threads of its own (horizon-chunk-encode-*), on top of the streaming pools. Its job is now an Urgent source of the process's pool: free workers join it ahead of generation and meshing, and, as before, the tick takes work itself and never waits for them (what a worker is still on is made again by body_in, the same bytes). On a single core the tick does all of it (no source).

40 lines in lan/chunks.rs; the encoding itself is untouched (warmed_columns_give_the_same_bodies passes).

Measured with #6721 on the Mac mini (14 threads, RD 32, loaded): together they take the peak from 62 to 37 threads; numbers in #6721. This PR alone removes N-1 = 13 threads there (31 on a 32-thread CPU).

pr_ready (the whole stack, #6719 + #6721 + this)

pr_ready (tools/pr_ready.py --quick --base db34ce484d on ludovics-mac-mini, against db34ce484d at db34ce484, 10 min 11 s)

Check Result
Scope ⚠️ 10 files, +945 −258; 1195 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 596 passed (3 min 12 s)
rustfmt ✅ (13 s)
clippy ✅ (1 min 25 s)
tests: horizon-client, horizon-client-lib, horizon-client-render, horizon-threads ✅ 2932 passed (4 min 58 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 132 affected, to run in CI (--quick): ambient_sound, armor_stand_frost, arrow, arrow_wind_charge, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_tint and 120 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 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/6722 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf-jobs/encode` --- ### 📝 Commits (1) - [`2ae7b30`](https://github.com/horizon-rust/horizon/commit/2ae7b3084bb60b9018dbd06a8d12b66d61e1390b) Chunk encoding warm-up: run on the shared worker pool ### 📊 Changes **1 file changed** (+40 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/chunks.rs` (+40 -46) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #6719 (the shared pool), independent of #6721. The server tick's chunk-encode warm-up started N-1 threads of its own (`horizon-chunk-encode-*`), on top of the streaming pools. Its job is now an `Urgent` source of the process's pool: free workers join it ahead of generation and meshing, and, as before, the tick takes work itself and never waits for them (what a worker is still on is made again by `body_in`, the same bytes). On a single core the tick does all of it (no source). 40 lines in `lan/chunks.rs`; the encoding itself is untouched (`warmed_columns_give_the_same_bodies` passes). Measured with #6721 on the Mac mini (14 threads, RD 32, loaded): together they take the peak from 62 to 37 threads; numbers in #6721. This PR alone removes N-1 = 13 threads there (31 on a 32-thread CPU). ## pr_ready (the whole stack, #6719 + #6721 + this) **pr_ready** (`tools/pr_ready.py --quick --base db34ce484d` on ludovics-mac-mini, against db34ce484d at db34ce484, 10 min 11 s) | Check | Result | | --- | --- | | Scope | ⚠️ 10 files, +945 −258; 1195 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 596 passed (3 min 12 s) | | rustfmt | ✅ (13 s) | | clippy | ✅ (1 min 25 s) | | tests: horizon-client, horizon-client-lib, horizon-client-render, horizon-threads | ✅ 2932 passed (4 min 58 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 132 affected, to run in CI (--quick): ambient_sound, armor_stand_frost, arrow, arrow_wind_charge, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_tint and 120 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:32:57 +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#7053
No description provided.