diff --git a/gradle.properties b/gradle.properties index eeac6e31..dc5e78f4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ kotlin.code.style=official org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m kotlinVersion=1.9.0 -kommonsVersion=2.3.2 +kommonsVersion=2.3.3 ffiVersion=2.2.13 lwjglVersion=3.3.0 diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt index 9f740acf..3e1a5a60 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/Main.kt @@ -19,6 +19,7 @@ import java.io.DataInputStream import java.io.File import java.net.InetSocketAddress import java.util.* +import java.util.concurrent.Executor import java.util.concurrent.TimeUnit import java.util.zip.Inflater import java.util.zip.InflaterInputStream @@ -31,11 +32,10 @@ fun main() { //Thread.sleep(6_000L) val db = BTreeDB6(File("testdb.bdb"), Starbound.BTREEDB_IO_POOL) + //val db = BTreeDB5(File("F:\\SteamLibrary\\steamapps\\common\\Starbound - Unstable\\storage\\universe\\389760395_938904237_-238610574_5.world")) //val db = BTreeDB(File("world.world")) - val t = System.nanoTime() val meta = DataInputStream(BufferedInputStream(InflaterInputStream(ByteArrayInputStream(db.read(ByteKey(0, 0, 0, 0, 0)).get().get()), Inflater()))) - println(System.nanoTime() - t) println(meta.readInt()) println(meta.readInt())