From e3a1c811701146e87461285c6d3b80f54688a7fc Mon Sep 17 00:00:00 2001 From: Raymond Lai Date: Thu, 16 May 2024 23:16:03 +0800 Subject: [PATCH] Increase DEFAULT_TRANSFER_QUANTUM to 1 MB In an attempt to increase efficiency in file I/O, either local or network --- .../amaze/filemanager/filesystem/files/GenericCopyUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/files/GenericCopyUtil.java b/app/src/main/java/com/amaze/filemanager/filesystem/files/GenericCopyUtil.java index bfc9263e12..75dc8ab34f 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/files/GenericCopyUtil.java +++ b/app/src/main/java/com/amaze/filemanager/filesystem/files/GenericCopyUtil.java @@ -72,8 +72,6 @@ public class GenericCopyUtil { private final DataUtils dataUtils = DataUtils.getInstance(); private final ProgressHandler progressHandler; - public static final String PATH_FILE_DESCRIPTOR = "/proc/self/fd/"; - public static final int DEFAULT_BUFFER_SIZE = 8192; /* @@ -82,7 +80,7 @@ public class GenericCopyUtil { Cannot modify DEFAULT_BUFFER_SIZE since it's used by other classes, will have undesired effect on other functions */ - private static final int DEFAULT_TRANSFER_QUANTUM = 65536; + private static final int DEFAULT_TRANSFER_QUANTUM = 1024 * 1024; public GenericCopyUtil(Context context, ProgressHandler progressHandler) { this.mContext = context;