From 189b1b37ff81aa8b1879e09427827dfbba840e13 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 21 Nov 2024 18:36:27 +0100 Subject: [PATCH] Added hint that parallelization didn't work --- .../src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt index cc2c533..20377ec 100644 --- a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt +++ b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt @@ -89,6 +89,7 @@ class MailReader( return emptyList() } + // tried to parallelize reading messages by reading them on multiple thread but that had no effect on process duration (don't know why) private fun listAllMessagesWithEInvoiceInFolder(folder: Folder): List = folder.messages.mapNotNull { message -> try { if (message.isMimeType("multipart/*")) {