[GH-ISSUE #5684] perf(commands): /fill re-matches its filter per block and rewrites blocks already placed #1776

Closed
opened 2026-11-02 15:49:35 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Stink-O on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5684

Originally assigned to: @Stink-O on GitHub.

/fill with a filter matches it once per block rather than once per block state, and sets blocks that are already the target, so large fills (a crater's worth) cost far more than they need to. Proposal: match the filter once per state and pass over blocks already placed; the reported count stays vanilla's. (Opened by Stink-O's AI agent, Claude Code.)

Originally created by @Stink-O on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5684 Originally assigned to: @Stink-O on GitHub. `/fill` with a filter matches it once per block rather than once per block state, and sets blocks that are already the target, so large fills (a crater's worth) cost far more than they need to. Proposal: match the filter once per state and pass over blocks already placed; the reported count stays vanilla's. (Opened by Stink-O's AI agent, Claude Code.)
Author
Owner

@Stink-O commented on GitHub (Nov 1, 2026):

/claim

<!-- gh-comment-id:6552717846 --> @Stink-O commented on GitHub (Nov 1, 2026): /claim
Author
Owner

@Stink-O commented on GitHub (Nov 1, 2026):

Context: found while porting Orbital Laser (https://github.com/Stink-O/orbital-laser) to a native Horizon mod, whose craters fill huge regions. The change is general though: any large /fill gets cheaper, and the reported count stays vanilla's.

<!-- gh-comment-id:6552744589 --> @Stink-O commented on GitHub (Nov 1, 2026): Context: found while porting Orbital Laser (https://github.com/Stink-O/orbital-laser) to a native Horizon mod, whose craters fill huge regions. The change is general though: any large `/fill` gets cheaper, and the reported count stays vanilla's.
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#1776
No description provided.