From 4989d646bee31ce9aa465dea460259d9d5ec8515 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Feb 2022 12:56:07 +0100 Subject: [PATCH] Revert "Bounded contact info thread pools" This reverts commit 213004bef6c2abc5b0020c82ed3efe3dcb88e6ee. --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 6 +----- app/src/main/java/eu/faircode/email/ContactInfo.java | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 2d972f8304..fe6feb4cba 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -311,12 +311,8 @@ 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(Math.max(1, processors / 2), "favicon"); + Helper.getBackgroundExecutor(0, "favicon"); private static final int GENERATED_ICON_SIZE = 96; // dp private static final int FAVICON_ICON_SIZE = 64; // dp