Core: Backup should use a 16KB buffer.

This commit is contained in:
Kenneth Endfinger 2022-01-15 16:10:23 -05:00
parent 0a08436088
commit ef13c2371c
No known key found for this signature in database
GPG Key ID: C4E68E5647420E10

View File

@ -138,7 +138,7 @@ class BackupCommand(
.filter { path: Path -> Files.isRegularFile(path) }
.filter { path -> !matchers.any { it.matches(Paths.get(path.normalize().toString())) } }
.toList()
val buffer = ByteArray(1024)
val buffer = ByteArray(16 * 1024)
val backupsPath = backupsPath.toRealPath()
for (path in paths) {