Skip to content

Commit

Permalink
Merge pull request #4175 from TranceLove/feature/increase-default-tra…
Browse files Browse the repository at this point in the history
…nsfer-quantum

Increase DEFAULT_TRANSFER_QUANTUM to 1 MB
  • Loading branch information
VishalNehra committed May 19, 2024
2 parents 734a49f + e3a1c81 commit aa89649
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand All @@ -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;
Expand Down

0 comments on commit aa89649

Please sign in to comment.