d1db8c4a54
The writer thread encoded (NBT) and zlib-compressed every chunk of a batch one after another before writing them. A batch of at least 8 chunks is now shared out to scoped helper threads (at most half the hardware threads), which take the next chunk as they finish one. The results are put back in submission order and written exactly as before, so the region files are byte-identical: each chunk's bytes depend only on the chunk, and sector allocation follows the same write order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>