Skip to content

v0.2.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Dec 17:41

Project renaming

The project has been renamed from minecraft_world_optimizer to minecraft_world_trimmer as this is a more accurate name.

Features

It is now possible to choose the compression level using a command line argument. The compression level has been reduced to 6 instead of 9 by default.

Bug Fixes

The tool may delete .mcc files from the region folder as it does not supports this file format. It will now only process .mca files.

Performance Improvements

This version improves processing performance and is almost twice as fast than the previous version.
It has been achieved with the following optimizations:

  • Stop cloning chunks in memory
  • The default compression level is 6 instead of 9
  • Do not write the region file if it has not changed

The test world I am using for this benchmark has 29,861 region files for a total of 17,923,667 chunks and 134,079,252 Kilobytes.

Version 0.1.1 Version 0.2.0 Time difference
Check 272.12 secs 269.48 secs Margin of error
Write 617.65 secs 310.99 secs 98% faster
Write on already trimmed world 270.19 secs 40.73 secs 663% faster
Size on disk after trim 27,220,256 KB 27,736,956 KB 1.8% larger size

The amount of deleted regions and chunks remains the same.