Update the sources with the most entries first in library updates

(cherry picked from commit b8070cdc9c)
This commit is contained in:
AntsyLich
2026-10-26 02:45:16 +06:00
parent 7e930f1afb
commit e5b44d4d34
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -15,6 +15,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
### Added
- Add a Time Format setting to customize how times are displayed ([@MajorTanya](https://github.com/MajorTanya)) ([#4118](https://github.com/mihonapp/mihon/pull/4118))
### Changed
- Update the sources with the most entries first during library updates ([@AntsyLich](https://github.com/AntsyLich))
### Improved
- Create and restore backups faster and with less memory ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken), [@AntsyLich](https://github.com/AntsyLich))
@@ -260,6 +260,7 @@ class LibraryUpdateWorker(private val context: Context, workerParams: WorkerPara
coroutineScope {
mangaToUpdate.groupBy { it.manga.source }.values
.sortedByDescending { it.size }
.map { mangaInSource ->
async {
semaphore.withPermit {