diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index b4f411ce2e..6f9a042655 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -317,8 +317,12 @@ public class AdapterMessage extends RecyclerView.Adapter emailLookup = new ConcurrentHashMap<>(); private static final Map emailContactInfo = new HashMap<>(); + private static final int processors = + Runtime.getRuntime().availableProcessors(); private static final ExecutorService executorLookup = Helper.getBackgroundExecutor(1, "contact"); - private static final ExecutorService executorFavicon = - Helper.getBackgroundExecutor(0, "favicon"); + Helper.getBackgroundExecutor(Math.max(1, processors / 2), "favicon"); private static final int GENERATED_ICON_SIZE = 96; // dp private static final int FAVICON_ICON_SIZE = 64; // dp