Disable fsync in FlatFileStore

This improves performance significantly.

Signed-off-by: Graham <gpe@openrs2.org>
Graham 2 years ago
parent 4aa181b91a
commit dbb30e0bd8
  1. 2
      cache/src/main/kotlin/org/openrs2/cache/FlatFileStore.kt

@ -92,7 +92,7 @@ public class FlatFileStore private constructor(
val path = groupPath(archive, group) val path = groupPath(archive, group)
Files.createDirectories(path.parent) Files.createDirectories(path.parent)
path.useAtomicOutputStream { output -> path.useAtomicOutputStream(sync = false) { output ->
buf.readBytes(output, buf.readableBytes()) buf.readBytes(output, buf.readableBytes())
} }
} }

Loading…
Cancel
Save