Split 'SplitMerge' class into 2 normal

Update NETCommunications: installation speed now 2x faster
This commit is contained in:
Dmitry Isaenko 2020-07-11 15:42:17 +03:00
parent 267ffcf5d2
commit 6993b89d52
8 changed files with 167 additions and 145 deletions

View file

@ -307,7 +307,7 @@ public class NETCommunications implements Runnable {
private void handleSplitFile(File file, long start, long end) throws Exception{
long count = end - start + 1;
int readPice = 8388608;
int readPice = 1024;// NOTE: keep it small for better speed
byte[] byteBuf;
long currentOffset = 0;
@ -333,7 +333,7 @@ public class NETCommunications implements Runnable {
private void handleRegularFile(File file, long start, long end) throws Exception{
long count = end - start + 1;
int readPice = 8388608;
int readPice = 1024; // NOTE: keep it small for better speed
byte[] byteBuf;
long currentOffset = 0;