Minestom / Hephaistos

NBT & Anvil save format library
MIT License
60 stars 11 forks source link

Specify compression processor #27

Open masmc05 opened 2 years ago

masmc05 commented 2 years ago

hi https://github.com/jglrxavpok/Hephaistos/blob/cec720e1a5562186a091a64ce2b9a256e0328674/common/src/main/kotlin/org/jglrxavpok/hephaistos/mca/RegionFile.kt#L206 can this be specified? even if only standart 3 (the NoCompression, Zlib, GZip) could be used, this already will change a lot, because at my stress tests this was the main problem image image

masmc05 commented 2 years ago

or is it possible to specify a completly custom compressor, if i don't care minecraft to be able to load and read it? so for example i could use lz4

masmc05 commented 2 years ago

a possibility like here? https://github.com/PaperMC/Paper/pull/5029 a high number that won't be used by minecraft, and to be able to register it before reading (I've made my own version of region file class and lz4 really had good improvements in speed, so would really like this to be supported natively)