byte buffer changed to 24KB

This commit is contained in:
rdavidek 2026-01-19 21:49:59 +01:00
parent af98d9f112
commit 0950eba98a

View File

@ -101,7 +101,7 @@ public class FileOperations {
long initialTotalCopied = totalCopied[0];
try (InputStream in = Files.newInputStream(source);
OutputStream out = Files.newOutputStream(target)) {
byte[] buffer = new byte[8192];
byte[] buffer = new byte[24576];
int length;
while ((length = in.read(buffer)) > 0) {
if (callback != null && callback.isCancelled()) return;
@ -606,7 +606,7 @@ public class FileOperations {
try (FileInputStream fis = new FileInputStream(fileToZip)) {
ZipEntry zipEntry = new ZipEntry(fileName);
zos.putNextEntry(zipEntry);
byte[] bytes = new byte[1024];
byte[] bytes = new byte[24576];
int length;
while ((length = fis.read(bytes)) >= 0) {
zos.write(bytes, 0, length);
@ -646,7 +646,7 @@ public class FileOperations {
// write file content
try (FileOutputStream fos = new FileOutputStream(newFile)) {
byte[] buffer = new byte[1024];
byte[] buffer = new byte[24576];
int len;
while ((len = zis.read(buffer)) > 0) {
fos.write(buffer, 0, len);