mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2026-11-04 18:42:20 +00:00
Faster UTF8 decode
This commit is contained in:
1 parent
ff38a831f2
commit
c7185fa370
2 files changed
+2
-3
No files matched your search
@@ -103,9 +103,8 @@ public struct ApkIndexUpdater {
|
||||
print("Index time: \((ContinuousClock.now - indexStart).formatted(durFormat))")
|
||||
}
|
||||
|
||||
let reader = TextInputStream(binaryStream: MemoryInputStream(buffer: apkIndexFile))
|
||||
return try ApkIndex(raw:
|
||||
try ApkRawIndex(lines: reader.lines))
|
||||
try ApkRawIndex(lines: TextInputStream(binaryStream: MemoryInputStream(buffer: apkIndexFile)).lines))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user