Reduced chunk size to 100

pull/206/head
M66B 4 years ago
parent 25282768d2
commit ee9f9d9ce8

@ -140,7 +140,7 @@ class Core {
private static final int MAX_NOTIFICATION_DISPLAY = 10; // per group private static final int MAX_NOTIFICATION_DISPLAY = 10; // per group
private static final int MAX_NOTIFICATION_COUNT = 100; // per group private static final int MAX_NOTIFICATION_COUNT = 100; // per group
private static final long SCREEN_ON_DURATION = 3000L; // milliseconds private static final long SCREEN_ON_DURATION = 3000L; // milliseconds
private static final int SYNC_CHUNCK_SIZE = 200; private static final int SYNC_CHUNCK_SIZE = 100;
private static final int SYNC_BATCH_SIZE = 20; private static final int SYNC_BATCH_SIZE = 20;
private static final int DOWNLOAD_BATCH_SIZE = 20; private static final int DOWNLOAD_BATCH_SIZE = 20;
private static final int SYNC_YIELD_COUNT = 100; private static final int SYNC_YIELD_COUNT = 100;
@ -3119,6 +3119,7 @@ class Core {
if (first > 0) if (first > 0)
ranges.add(new Pair<>(first, last < 0 ? first : last)); ranges.add(new Pair<>(first, last < 0 ? first : last));
// https://datatracker.ietf.org/doc/html/rfc2683#section-3.2.1.5
List<List<Pair<Long, Long>>> chunks = Helper.chunkList(ranges, SYNC_CHUNCK_SIZE); List<List<Pair<Long, Long>>> chunks = Helper.chunkList(ranges, SYNC_CHUNCK_SIZE);
Log.i(folder.name + " executing uid fetch count=" + uids.size() + Log.i(folder.name + " executing uid fetch count=" + uids.size() +

Loading…
Cancel
Save