mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -104,6 +104,7 @@ object BookContent {
|
||||
} else if (contentData.second.size > 1) {
|
||||
Debug.log(bookSource.bookSourceUrl, "◇并发解析正文,总页数:${contentData.second.size}")
|
||||
withContext(IO) {
|
||||
//页数太多并行访问有问题,这里判断下页数,超过5页就不并行访问
|
||||
val asyncStart =
|
||||
if (contentData.second.size > 5) CoroutineStart.LAZY else CoroutineStart.DEFAULT
|
||||
val asyncArray = Array(contentData.second.size) {
|
||||
|
||||
Reference in New Issue
Block a user