-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster member list by avoiding many FFI calls #2322
Conversation
I did not mean to PR the other commits |
Probably code should be deduplicated between ExportedRoomMemberMapper.kt and RoomMemberMapper.kt |
Did you start the branch |
Yeah, this PR can only be merged after a new SDK version is integrated too. Maybe you can make it a draft for now @timokoesters ? We can take a look after that and rebase the branch. We also need this PR to be merged first: matrix-org/matrix-rust-sdk#3074 |
241052e
to
0d47281
Compare
...rc/main/kotlin/io/element/android/libraries/matrix/impl/room/member/RoomMemberListFetcher.kt
Outdated
Show resolved
Hide resolved
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
@@ -21,10 +21,10 @@ import io.element.android.libraries.matrix.api.room.RoomMember | |||
import io.element.android.libraries.matrix.api.room.RoomMembershipState | |||
import uniffi.matrix_sdk.RoomMemberRole | |||
import org.matrix.rustcomponents.sdk.MembershipState as RustMembershipState | |||
import org.matrix.rustcomponents.sdk.ExportedRoomMember as RustExportedRoomMember | |||
import org.matrix.rustcomponents.sdk.RoomMember as RustRoomMember | |||
|
|||
object ExportedRoomMemberMapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this struct and the file again too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
22df6fb
to
c681f90
Compare
I rebased the PR contents after merging the new SDK version, this should be ready to review now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2322 +/- ##
========================================
Coverage 72.82% 72.82%
========================================
Files 1374 1374
Lines 32723 32723
Branches 6358 6358
========================================
Hits 23829 23829
Misses 5585 5585
Partials 3309 3309 ☔ View full report in Codecov by Sentry. |
|
Type of change
Content
This makes it much faster to load room members by avoiding FFI calls, corresponding to matrix-org/matrix-rust-sdk#3074
Motivation and context
matrix-org/matrix-rust-sdk#1979
Tests
Tested devices
Checklist