From 1dd6359c89adfcc2010a18f6cb5f7567811a7001 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 8 Jun 2024 11:06:26 -0500 Subject: [PATCH] Try changing LZMA preset from 4 -> 3 (faster, less compressed) --- .../core/util/objects/dataStreams/DhDataOutputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/util/objects/dataStreams/DhDataOutputStream.java b/core/src/main/java/com/seibel/distanthorizons/core/util/objects/dataStreams/DhDataOutputStream.java index 5fff65581..6797af8d2 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/util/objects/dataStreams/DhDataOutputStream.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/util/objects/dataStreams/DhDataOutputStream.java @@ -68,8 +68,8 @@ public class DhDataOutputStream extends DataOutputStream ResettableArrayCache arrayCache = LZMA_RESETTABLE_ARRAY_CACHE_GETTER.get(); arrayCache.reset(); // Note: if the LZMA2Options are changed the array cache may need to be re-tested. - // the array cache was specifically tested and tuned for LZMA preset 4 - return new XZOutputStream(stream, new LZMA2Options(4), + // the array cache was specifically tested and tuned for LZMA preset 3/4 + return new XZOutputStream(stream, new LZMA2Options(3), XZ.CHECK_CRC64, arrayCache); default: