minedmap: split up big types by adding Boxes

Make these values faster to move around, and optimize their size when
used in Options.
This commit is contained in:
Matthias Schiffer 2023-08-05 14:21:51 +02:00
parent cd1a5e869d
commit 7b46adf6e7
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 12 additions and 9 deletions

View file

@ -48,7 +48,7 @@ pub struct ProcessedChunk {
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct ProcessedRegion {
pub biome_list: IndexSet<Biome>,
pub chunks: ChunkArray<Option<ProcessedChunk>>,
pub chunks: ChunkArray<Option<Box<ProcessedChunk>>>,
}
pub struct Config {