Increase chuck size from 25 to 500

Dovecot users: set imap_max_line_length to something sensible
pull/156/head
M66B 6 years ago
parent f3a3ec12fa
commit a29d8d97cc

@ -115,6 +115,7 @@ class Core {
private static int lastUnseen = -1; private static int lastUnseen = -1;
private static final int MAX_NOTIFICATION_COUNT = 10; // per group private static final int MAX_NOTIFICATION_COUNT = 10; // per group
private static final int SYNC_CHUNCK_SIZE = 500;
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 long YIELD_DURATION = 200L; // milliseconds private static final long YIELD_DURATION = 200L; // milliseconds
@ -1044,7 +1045,7 @@ class Core {
@Override @Override
public Object doCommand(IMAPProtocol protocol) { public Object doCommand(IMAPProtocol protocol) {
Log.i(folder.name + " executing uid fetch count=" + uids.size()); Log.i(folder.name + " executing uid fetch count=" + uids.size());
List<List<Long>> chunked = Helper.chunkList(new ArrayList<>(uids), 25); List<List<Long>> chunked = Helper.chunkList(new ArrayList<>(uids), SYNC_CHUNCK_SIZE);
for (int c = 0; c < chunked.size(); c++) { for (int c = 0; c < chunked.size(); c++) {
Log.i(folder.name + " chunk #" + c + " size=" + chunked.get(c).size()); Log.i(folder.name + " chunk #" + c + " size=" + chunked.get(c).size());
Response[] responses = protocol.command( Response[] responses = protocol.command(

Loading…
Cancel
Save