Skip to content

Conversation

josephjames26
Copy link

@josephjames26 josephjames26 commented Jul 24, 2025

Currently, the library initializes on the main thread, and a Gson operation performed there can lead to ANRs for consumers. This draft PR proposes moving the deserialization step to a worker thread to prevent those ANRs.

@josephjames26 josephjames26 changed the title Dispatching the statsigScope to io Dispatching the shared preference operation to io thread Jul 24, 2025
@josephjames26 josephjames26 changed the title Dispatching the shared preference operation to io thread Dispatching the Gson operation to io thread Jul 24, 2025
@josephjames26 josephjames26 changed the title Dispatching the Gson operation to io thread Dispatching the Gson operation to worker thread Jul 24, 2025
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.

1 participant