Skip to content

Conversation

farmery
Copy link

@farmery farmery commented Mar 8, 2025

Problem

Secure storage operations were previously executed on a single worker thread. This becomes a bottleneck when multiple read operations are triggered simultaneously, leading to significant delays due to the synchronous execution on the native side.

Solution

Replaced the single worker thread with a thread pool (using Executors.newCachedThreadPool()). This allows multiple secure storage operations to run concurrently, significantly improving performance when handling simultaneous read/write requests.

Impact

Reduces contention and latency for secure storage operations.
Improves app responsiveness when multiple storage operations are triggered.
No changes in API usage—just an internal optimization for Android.

@farmery
Copy link
Author

farmery commented Mar 15, 2025

HI @juliansteenbakker, please can you take a look?🙏🏾

@farmery
Copy link
Author

farmery commented Apr 7, 2025

@juliansteenbakker Hii...👀

@juliansteenbakker
Copy link
Owner

So sorry for the delay, im on vacation till friday, will take a look when i get back!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants