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

View file

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