Increase number of fetch executors

This commit is contained in:
M66B 2020-05-01 20:26:34 +02:00
parent 313db1d3f7
commit 974fe5c25b
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ public class ViewModelMessages extends ViewModel {
}
};
private ExecutorService executor = Helper.getBackgroundExecutor(2, "model");
// AndroidX IO = 4 threads
private ExecutorService executor = Helper.getBackgroundExecutor(4, "model");
private static final int LOCAL_PAGE_SIZE = 50;
private static final int REMOTE_PAGE_SIZE = 10;