Skip to content

fix: return Uint16Array from block_ids and add batch fill_column#6

Merged
LachyFS merged 2 commits into
mainfrom
fix/block-ids-uint16-fill-column
Apr 1, 2026
Merged

fix: return Uint16Array from block_ids and add batch fill_column#6
LachyFS merged 2 commits into
mainfrom
fix/block-ids-uint16-fill-column

Conversation

@LachyFS

@LachyFS LachyFS commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Change block_ids()/transparent_block_ids() to return Uint16Array directly, eliminating per-call Vec<f32> allocation
  • Add Chunk::fill_column() for efficient batch column filling
  • Add non_air_blocks() accessor and tests

Test plan

  • cargo test (74/74 pass, 2 new tests)
  • cargo check on urath-wasm
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --all -- --check

LachyFS added 2 commits April 1, 2026 11:27
- Change block_ids()/transparent_block_ids() to return Uint16Array
  directly, eliminating per-call Vec<f32> allocation
- Add Chunk::fill_column() for efficient batch column filling
- Add non_air_blocks() accessor and tests
…fill-column

# Conflicts:
#	crates/urath-wasm/src/lib.rs
@LachyFS LachyFS merged commit 50ffd43 into main Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant