mirror of https://github.com/M66B/FairEmail.git
Revert "Bounded contact info thread pools"
This reverts commit 213004bef6
.
This commit is contained in:
parent
41ecc99d46
commit
4989d646be
|
@ -311,12 +311,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
private DateFormat TF;
|
private DateFormat TF;
|
||||||
private DateFormat DTF;
|
private DateFormat DTF;
|
||||||
|
|
||||||
private static final int processors =
|
|
||||||
Runtime.getRuntime().availableProcessors();
|
|
||||||
private static final ExecutorService executor =
|
private static final ExecutorService executor =
|
||||||
Helper.getBackgroundExecutor(2, "differ");
|
Helper.getBackgroundExecutor(2, "differ");
|
||||||
private static final ExecutorService executorContactInfo =
|
|
||||||
Helper.getBackgroundExecutor(Math.max(1, processors / 2), "contact");
|
|
||||||
|
|
||||||
private static final int MAX_RECIPIENTS_COMPACT = 3;
|
private static final int MAX_RECIPIENTS_COMPACT = 3;
|
||||||
private static final int MAX_RECIPIENTS_NORMAL = 7;
|
private static final int MAX_RECIPIENTS_NORMAL = 7;
|
||||||
|
@ -1486,7 +1482,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
|
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
|
||||||
}
|
}
|
||||||
}.setLog(false).setExecutor((executorContactInfo));
|
}.setLog(false);
|
||||||
taskContactInfo.execute(context, owner, aargs, "message:avatar");
|
taskContactInfo.execute(context, owner, aargs, "message:avatar");
|
||||||
} else
|
} else
|
||||||
bindContactInfo(message, info, addresses);
|
bindContactInfo(message, info, addresses);
|
||||||
|
|
|
@ -100,12 +100,11 @@ public class ContactInfo {
|
||||||
private static Map<String, Lookup> emailLookup = new ConcurrentHashMap<>();
|
private static Map<String, Lookup> emailLookup = new ConcurrentHashMap<>();
|
||||||
private static final Map<String, ContactInfo> emailContactInfo = new HashMap<>();
|
private static final Map<String, ContactInfo> emailContactInfo = new HashMap<>();
|
||||||
|
|
||||||
private static final int processors =
|
|
||||||
Runtime.getRuntime().availableProcessors();
|
|
||||||
private static final ExecutorService executorLookup =
|
private static final ExecutorService executorLookup =
|
||||||
Helper.getBackgroundExecutor(1, "contact");
|
Helper.getBackgroundExecutor(1, "contact");
|
||||||
|
|
||||||
private static final ExecutorService executorFavicon =
|
private static final ExecutorService executorFavicon =
|
||||||
Helper.getBackgroundExecutor(Math.max(1, processors / 2), "favicon");
|
Helper.getBackgroundExecutor(0, "favicon");
|
||||||
|
|
||||||
private static final int GENERATED_ICON_SIZE = 96; // dp
|
private static final int GENERATED_ICON_SIZE = 96; // dp
|
||||||
private static final int FAVICON_ICON_SIZE = 64; // dp
|
private static final int FAVICON_ICON_SIZE = 64; // dp
|
||||||
|
|
Loading…
Reference in New Issue