From cfe42aec5b25776a79589b7f2e74dd2f9887041f Mon Sep 17 00:00:00 2001 From: nicksavers Date: Sat, 2 Aug 2014 01:15:38 +0200 Subject: [PATCH] Remove unnecessary compression --- ethereumj-core/src/main/java/org/ethereum/db/DatabaseImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/db/DatabaseImpl.java b/ethereumj-core/src/main/java/org/ethereum/db/DatabaseImpl.java index 73a26b28..705a2910 100644 --- a/ethereumj-core/src/main/java/org/ethereum/db/DatabaseImpl.java +++ b/ethereumj-core/src/main/java/org/ethereum/db/DatabaseImpl.java @@ -9,6 +9,7 @@ import java.util.Collections; import java.util.List; import org.ethereum.config.SystemProperties; +import org.iq80.leveldb.CompressionType; import org.iq80.leveldb.DB; import org.iq80.leveldb.DBIterator; import org.iq80.leveldb.Options; @@ -34,6 +35,7 @@ public class DatabaseImpl implements Database { this.name = name; Options options = new Options(); options.createIfMissing(true); + options.compressionType(CompressionType.NONE); try { logger.debug("Opening database"); File dbLocation = new File(System.getProperty("user.dir") + "/" + @@ -45,7 +47,6 @@ public class DatabaseImpl implements Database { } logger.debug("Initializing new or existing DB: '" + name + "'"); - options.createIfMissing(true); db = factory.open(fileLocation, options); // logger.debug("Showing database stats"); // String stats = DATABASE.getProperty("leveldb.stats");