Skip to content

Comments

Disable the cross-process lock in the SDK#6231

Open
jmartinesp wants to merge 1 commit intodevelopfrom
misc/disable-cross-process-lock-for-sdk
Open

Disable the cross-process lock in the SDK#6231
jmartinesp wants to merge 1 commit intodevelopfrom
misc/disable-cross-process-lock-for-sdk

Conversation

@jmartinesp
Copy link
Member

Content

What the title says.

Motivation and context

We don't use multiple process as iOS does, so we don't need it. It should improve DB performance a bit and overall waste less resources.

Tests

Use the app normally, check you can receive push notifications and they get processed as usual. Battery usage should decrease too, but that's a bit more difficult to measure.

Tested devices

  • Physical
  • Emulator
  • OS version(s): 16

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

We don't use multiple process as iOS does, so we don't need it. It should improve DB performance a bit and overall waste less resources.
@jmartinesp jmartinesp requested a review from a team as a code owner February 20, 2026 10:02
@jmartinesp jmartinesp added the PR-Misc For other changes label Feb 20, 2026
@jmartinesp jmartinesp requested review from ganfra and removed request for a team February 20, 2026 10:02
@github-actions
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/TfRNBd

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.42%. Comparing base (efb2098) to head (9fa2551).

Files with missing lines Patch % Lines
...oid/libraries/matrix/impl/ClientBuilderProvider.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6231      +/-   ##
===========================================
- Coverage    81.42%   81.42%   -0.01%     
===========================================
  Files         2570     2570              
  Lines        69788    69789       +1     
  Branches      8950     8950              
===========================================
  Hits         56825    56825              
- Misses        9643     9644       +1     
  Partials      3320     3320              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

override fun provide(): ClientBuilder {
return ClientBuilder()
// Make sure all built clients use the single process cross-process lock config
.crossProcessLockConfig(CrossProcessLockConfig.SingleProcess)
Copy link
Member

@bmarty bmarty Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RustClientBuilderProvider is a way to hide the usage of org.matrix.rustcomponents.sdk.ClientBuilder.

I'd move the configuration in RustMatrixClientFactory.getBaseClientBuilder instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-Misc For other changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants