From 543816f082282deaff27597b30218b1722569e1d Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 21 Oct 2023 02:30:42 +0800 Subject: increase queue size to 1M --- src/main/java/com/keuin/blame/SubmitWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/keuin/blame/SubmitWorker.java b/src/main/java/com/keuin/blame/SubmitWorker.java index 78763a1..ddd6167 100644 --- a/src/main/java/com/keuin/blame/SubmitWorker.java +++ b/src/main/java/com/keuin/blame/SubmitWorker.java @@ -17,7 +17,7 @@ public class SubmitWorker { public static final SubmitWorker INSTANCE = new SubmitWorker(); private final Logger logger = Logger.getLogger(SubmitWorker.class.getName()); - private final BlockingQueue queue = new ArrayBlockingQueue<>(4096); + private final BlockingQueue queue = new ArrayBlockingQueue<>(1048576); private final Thread thread = new Thread(SubmitWorker.this::run); private boolean run = true; -- cgit v1.2.3