Skip to content
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

Decreased performance of an application, ANR with 3.10.x version #75

Open
samuolis opened this issue Sep 16, 2024 · 6 comments
Open

Decreased performance of an application, ANR with 3.10.x version #75

samuolis opened this issue Sep 16, 2024 · 6 comments
Assignees

Comments

@samuolis
Copy link

I recently discovered that after upgrading the Phrase version to 3.10.2, my app's performance decreased significantly. Every screen takes a lot of time to load. I believe it is something with the new cache.

If there is something more to provide, then I can help. 3.9 version works quite well.

There were ANR crashes in the app just because of that. I see decreasing the version to 3.9 helps to improve app performance a lot.

@hahmed-dev hahmed-dev self-assigned this Sep 16, 2024
@hahmed-dev
Copy link

Hi @samuolis , would you be able to provide some information like

  • hardware you are testing on?
  • OS and version?

Also it would be really helpful if its possible to share some logs with 3.10.2 version? Around when you encounter this issue? Doing PhraseLog.logLevel = Severity.Debug will also log some detailed information about the SDKs behaviour.

@ybasset
Copy link

ybasset commented Oct 4, 2024

I just found that we have the same problem on an app I'm working on.
On an emulator the performance impact seems low but still here.
After doing PhraseLog.logLevel = Severity.Debug I saw that last version logs this for all opened activities, but it wasn't the case before (we were on 3.7.4):

Injecting Phrase Resources into: android.app.ContextImpl@323f0f8
Creating Delegate for: ***Activity@97f1c36
Setting default Locale Code: en_US
Used Locale en_US (default) did not change, skipping update

@ybasset
Copy link

ybasset commented Oct 4, 2024

Version 3.9.1 seems to have the same logs but without the performance impact, so that's not it

@hahmed-dev
Copy link

Thanks for sharing the logs @ybasset I will take a look and get back to you about the next steps on this.

@theSoenke
Copy link
Contributor

theSoenke commented Dec 3, 2024

Hi @samuolis and @ybasset, we've just published a pre-release 3.10.3-beta. It should improve internal caching to improve performance. Could you check whether this solves the issue for you?

@alexandruvladbird
Copy link

alexandruvladbird commented Dec 9, 2024

@theSoenke We had the same issues and I can confirm that 3.10.3-beta has indeed improved performance which is similar to the one that 3.9.1 had

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

No branches or pull requests

5 participants