Bump kommons
This commit is contained in:
parent
a0c63d3aaf
commit
067d16eaf3
@ -2,7 +2,7 @@ kotlin.code.style=official
|
|||||||
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
|
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
kotlinVersion=1.9.0
|
kotlinVersion=1.9.0
|
||||||
kommonsVersion=2.3.2
|
kommonsVersion=2.3.3
|
||||||
|
|
||||||
ffiVersion=2.2.13
|
ffiVersion=2.2.13
|
||||||
lwjglVersion=3.3.0
|
lwjglVersion=3.3.0
|
||||||
|
@ -19,6 +19,7 @@ import java.io.DataInputStream
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.net.InetSocketAddress
|
import java.net.InetSocketAddress
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
import java.util.concurrent.Executor
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
import java.util.zip.Inflater
|
import java.util.zip.Inflater
|
||||||
import java.util.zip.InflaterInputStream
|
import java.util.zip.InflaterInputStream
|
||||||
@ -31,11 +32,10 @@ fun main() {
|
|||||||
//Thread.sleep(6_000L)
|
//Thread.sleep(6_000L)
|
||||||
|
|
||||||
val db = BTreeDB6(File("testdb.bdb"), Starbound.BTREEDB_IO_POOL)
|
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 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())))
|
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())
|
||||||
println(meta.readInt())
|
println(meta.readInt())
|
||||||
|
Loading…
Reference in New Issue
Block a user