Set initialLoadSize = pageSize (#3598)

The pageSize is large enough that there's no need for the default 3 x pageSize initialLoadSize value, and this improves performance.

Fixes https://github.com/tuskyapp/Tusky/issues/3578
This commit is contained in:
Nik Clayton 2023-04-29 19:34:29 +02:00 committed by GitHub
parent 152318ce85
commit 03031e5716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class NotificationsRepository @Inject constructor(
}
return Pager(
config = PagingConfig(pageSize = pageSize),
config = PagingConfig(pageSize = pageSize, initialLoadSize = pageSize),
initialKey = initialKey,
pagingSourceFactory = factory!!
).flow