From a860b4937bb1ae31c8784ace7a0cd1c8c0c9ab93 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sat, 3 Sep 2022 13:50:16 +0100 Subject: [PATCH] increasing the amount of in memory room keys that are processed at once - 500 balanced memory with performance from my testing --- .../app/dapk/st/matrix/crypto/internal/RoomKeyImporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/services/crypto/src/main/kotlin/app/dapk/st/matrix/crypto/internal/RoomKeyImporter.kt b/matrix/services/crypto/src/main/kotlin/app/dapk/st/matrix/crypto/internal/RoomKeyImporter.kt index 3a559dd..9845899 100644 --- a/matrix/services/crypto/src/main/kotlin/app/dapk/st/matrix/crypto/internal/RoomKeyImporter.kt +++ b/matrix/services/crypto/src/main/kotlin/app/dapk/st/matrix/crypto/internal/RoomKeyImporter.kt @@ -86,7 +86,7 @@ class RoomKeyImporter( isExported = true, ) } - .chunked(50) + .chunked(500) .forEach { onChunk(it) } } roomIds.toList().ifEmpty {