Более большой буфер чтения индексов pak файлов
This commit is contained in:
parent
8042cd0a22
commit
af7ff24320
@ -358,10 +358,10 @@ object Starbound {
|
||||
var time = System.currentTimeMillis()
|
||||
|
||||
if (archivePaths.isNotEmpty()) {
|
||||
callback(false, false, "Reading pak archives...".also(LOGGER::info))
|
||||
callback(false, false, "Searching for pak archives...".also(LOGGER::info))
|
||||
|
||||
for (path in archivePaths) {
|
||||
callback(false, false, "Reading ${path.name}...".also(LOGGER::info))
|
||||
callback(false, false, "Reading index of ${path.name}...".also(LOGGER::info))
|
||||
|
||||
addPak(StarboundPak(path) { _, status ->
|
||||
callback(false, true, "${path.name}: $status")
|
||||
|
@ -193,7 +193,7 @@ class StarboundPak(val path: File, callback: (finished: Boolean, status: String)
|
||||
// byte[] (utf-8 имя файла)
|
||||
// long (offset от начала файла)
|
||||
// long (длина файла)
|
||||
val stream = DataInputStream(BufferedInputStream(Channels.newInputStream(reader.channel)))
|
||||
val stream = DataInputStream(BufferedInputStream(Channels.newInputStream(reader.channel), 2 shl 22))
|
||||
|
||||
for (i in 0 until indexNodeCount) {
|
||||
var name: String? = null
|
||||
|
Loading…
Reference in New Issue
Block a user